Transcrierea in C++
#include <iostream>
using namespace std;
int main()
{
int a, b, c;
char x, y;
cin >> x >> y;
a = 1;
b = 12;
c = 4;
if (a > b)
{
if (x == '*')
{
a = a * 3;
}
else
{
if (y == '^')
{
b = b - 3;
}
}
}
cout << a << " " << b << " " << c;
return 0;
}