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.