Answer to Question #301424 in C++ for Mateo

Question #301424
  1. Input two integers (one per line) and make sure to store them in variables.
  2. Add the two integers and print out their sum!




1
Expert's answer
2022-02-23T06:24:34-0500


#include <iostream>


using namespace std;
int main() {
	double number1;
	double number2;
	cin>>number1>>number2;
	int sum=number1+number2;
	
	cout<<sum<<"\n\n";
	system("pause");
	return 0;
}

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
New on Blog