Programs that make your work easy
All c and C++ programs on all topics are here.
Friday, 16 September 2016
Adding of two numbers
#include < iostream.h >
int main()
{
int first, second, sum;
cout<<"Enter two integers to add\n";
cin>>first>>second;
sum = first + second ;
cout<<"Sum of entered numbers ="<<sum<<"\n";
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment