Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b; //создаю переменные a и b
- int sum; //создаю целочисленную переменную sum
- cout << "Enter the first number\n"; //введите первое число
- cin >> a;
- cout << "(" << a << ") \n";
- cout << "Enter the second number \n";
- //введите второе число
- cin >> b;
- cout << "(" << b << ") \n";
- sum = a + b;
- cout << "Your result " << sum;
- //ваш результат
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement