Filename | Summation operator |
Permission | rw-r--r-- |
Author | pramana |
Date and Time | 2:55 am |
Label | Algorithm and Programming |
Action |
1. input the first number and second number
2. enter the formula
3. show the results
C++
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cout<<"Calculated using the operator + "<<endl;;
cout<<"Input the first number : "<<endl;
cin>>a;
cout<<"Input the second number : "<<endl;
cin>>b;
c = a + b ;
cout<<a<<" + "<<b<<" = "<<c<<endl;
return 0;
}
1 comments:
i use g++ in ubuntu
Post a Comment