In this program, the user is asked to enter two integers. These two integers are stored in variables first_number and second_number respectively. Then, the ...
Step 1; sum = num1 + num2; After that it is displayed on screen using the cout object.
Code
#include<iostream>
using namespace std;
int main()
{
int a=20 ;
int b = 50;
int z;
z= a+ b;
cout<<" total sum = "<<z<<endl;
return 0;
}
0 Comments