Answer to Question #12876 in C++ for John Kennedy Robles

Question #12876
C++ progam that will calculate and display the sum of 2 numbers
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS