Computer Science, asked by Divi6706, 1 year ago

write a program in qbasic to accept to names and their ages.Compare their ages and print the name of the person who is older​

Answers

Answered by Anonymous
14

Answer:

Explanation:

Input " Enter the name ";Name$

Input " Enter the city";City$

Input " Enter the country";Country$

Input " Enter the age";Age

Print " The name is ";Name$

Print " The city is ";City$

Print " The country is ";Country$

Print " The age is ";Age

In the above figure,

4 input statement is used to enter the data from keyboard in the variable Name$, City$, Country$ and Age.

4 print statement is used to print the variable Name$, City$, Country$, And Age$.  


Anonymous: hi
Answered by ShrutiDhenge
6

Hope this help you........

Attachments:
Similar questions