N-am chef de transformat cin si cout in printf si scanf, iti las tie asta.
By the way, sunt curios cum ai reusit sa NU iei 100 de puncte :))
#include <iostream>
using namespace std;
int main()
{
int a, b;
char op;
cin >> a >> b >> op;
if (a < b)
{
int aux = a;
a = b;
b = aux;
}
if (op == '*')
cout << a * b;
else if (op == '+')
cout << a + b;
else if (op == '-')
cout << a - b;
else if (op == '/')
cout << a / b;
}