Question:- A program to enter your name, city, country, age and print them.
Solution:-
- It is simple and easy to learn
- It is an interpreter having its own editor.
- It has dynamic program debugging.
- It supports the local and global variable.
- It supports modular programming.
- It capitalizes the reserved words automatically.
- The syntaxes of the statements are checked automatically.
Rem A program to enter your name, city, country, age and print them.
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 "; AgeEnd
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
ReplyDeleteThanks
ReplyDelete