C++ Program Codes
Learn and share the source codes of C++ Programs
Pages
Home
Projects
Assignments
Infolinks - Earn Easy Money
Saturday, April 4, 2015
C++ program to calculate the sum of two numbers
#include <iostream>
using namespace std ;
int main ( )
{
int a , b , sum ;
cout <<" Enter the first number \n ";
cin >> a ;
cout <<" Enter the second number \n ";
cin >> b ;
sum = a + b ;
cout <<" Sum = " << sum ;
return 0 ;
}
No comments:
Post a Comment
Must drop your comments about post.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Must drop your comments about post.