Tuesday, 15 May 2018
how to get values from user in c++
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"Enter two number please "<<endl;
cin>>a;
cin>>b;
int sum;
sum=a+b;
cout<<"sum is "<<sum;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment