cs-lab02/main.cpp

26 строки
540 B
C++

#include <iostream>
using namespace std;
int main() {
cout << "Enter A and B: ";
int a, b;
cin >> a >> b;
int sum = a + b;
cout << "Sum of A and B is: " << sum << endl;
int difference = a - b;
cout << "Difference of A and B is: " << difference << endl;
int proizv = a * b;
cout << "Proizvedenie of A and B is: " << proizv << endl;
float delenie = a / b;
cout << "Delenie of A and B is: " << delenie << endl;
cout << "Maksimalnoe of A and B is: " << max(a, b) << endl;
return 0;
}