Answer to Question #12876 in C++ for John Kennedy Robles
C++ progam that will calculate and display the sum of 2 numbers
1
2012-08-10T10:39:33-0400
#include <iostream.h>
int a, b;
void main(){
cout<<"Enter the first number: ";
cin>>a;
cout<<"Enter the second number: ";
cin>>b;
cout<<"a+b = "<<a+b<<"\n";
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment