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
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
6
Hope this help you........
Attachments:
Similar questions
Math,
6 months ago
Hindi,
6 months ago
Computer Science,
6 months ago
Computer Science,
1 year ago
History,
1 year ago
Social Sciences,
1 year ago