The following QBasic code is used to print the required problem
CLS
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
End
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$.
CLS
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
End
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$.
thanks a lot it is really helpful
ReplyDeleteThanks
DeleteGood
ReplyDelete