Answer to Question #325384 in C++ for Ela

Question #325384

Type a number: 5

Type another number: 2

Sum is :7


1
Expert's answer
2022-04-07T17:38:16-0400
#include <iostream>
using namespace std;

int main()
{
	double num1;
	double num2;
	double sum;

	cout << "Type number: ";
	cin >> num1;

	cout << "Typer another number: ";
	cin >> num2;

    sum = num1 + num2;

	cout << "Sum is: " << sum;

	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
APPROVED BY CLIENTS