Take input of number in C++ by R4R Team

How take an input from user?

program-

#include
using namespace std;
int main()
{
int a;
cout << "Enter numbern";
cin >> a;
cout <<"Your number is: "<< a;
}


output-

Enter number
3
Your number is: 3




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!