![]() | |
![]() |
![]() |
#include <iostream.h>
int main(void)
{
int a, b;
char c;
cout<<"Enter the first number a = ";
cin>>a;
cout<<"Enter the second number b = ";
cin>>b;
cout<<"You entered:\n a = "<<a<<"\n b = "<<b<<"\n";
cout<<"The ir sum is a+b = "<<a+b<<"\n";
cout<<"Type 'Q' and press enter to quit\n";
cin>>c;
return 0;
}
To use a command line compiler do the following steps: