Algorithm:
while(true):
	int conversationDuration = Read("Edit conversation length in seconds:\n");
	int areaCode = Read("Edit area code number:\n");
	int koeff= 0;
	if(areaCode == 1):
		koeff = 100;
	if(areaCode == 2):
		koeff = 200;
	if(areaCode == 3):
		koeff = 300;
	Display(koeff*conversationDuration );
Comments