C++ Help of making a programm

...
Last edited on
Like this?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
using namespace std;

int main()
{
	int num1 = 12, num2 = 10;
	int sum1, sum2;

	sum1 = num1 + num2;
	cout << num1 << " " << endl;
	cout << "+ " << num2 << endl;
	cout << "------" << endl;
	cout << sum1 << " " << endl;
	cout << endl;
	cout << endl;

	sum2 = num1*num2;
	cout << num1 << " " << endl;
	cout << "* " << num2 << endl;
	cout << "------" << endl;
	cout << sum2 << " " << endl;

	system("pause");
	return 0;
}
Topic archived. No new replies allowed.