Morash
04-06-2014, 12:00 PM
A Simple Program Used For Taking Input From The Keyboard/User.
A Program Used For Taking Input From The Keyboard/User. I Have Declared Two Variables char And int Type Which Store The Value Entered By The User And Display It On Screen. For Input We Use cin>>variable_name; And For Output We Use cout<<"Output Message ";
char a[20]; Is Character Type Variable Which Stores 20 Characters
int b; Is Integer Type Variable Which Stores A Number
endl Is Used For End Of Line
\n Is Used For New Line
http://i60.tinypic.com/vo0j1v.jpg
Output
http://i57.tinypic.com/vy5tl3.jpg
A Program Used For Taking Input From The Keyboard/User. I Have Declared Two Variables char And int Type Which Store The Value Entered By The User And Display It On Screen. For Input We Use cin>>variable_name; And For Output We Use cout<<"Output Message ";
char a[20]; Is Character Type Variable Which Stores 20 Characters
int b; Is Integer Type Variable Which Stores A Number
endl Is Used For End Of Line
\n Is Used For New Line
http://i60.tinypic.com/vo0j1v.jpg
Output
http://i57.tinypic.com/vy5tl3.jpg