C++ Programs
Monday, 6 February 2017
User Input Program
User Input Program (cin)
#include<iostream>
using namespace std;
int main()
{
int num;
cout<<"Enter a number ";
cin>>num;
cout<<"Number you entered is : "<<num;
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment