Accepting Data into a variable
The keyword 'cin' is used to accept the data.
Program 2
#include
Main()
{
int num;
cout<<"enter a number";
cin>>num;
cout<<"Number"<
}
The name of a variable should not enclose inside the quotes.
About Rishabh Aggarwal
Competitive Programmer and Ruby on Rails Developer
Snake Game using javascript (P5.js) Follow me at Instagram here. Subscribe to my youtube channel here. Just learnt somet...
No comments:
Post a Comment