Răspuns :
Salut!
Ai mai jos rezolvarea in limbajul C++
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a > b)
{
cout << a * b;
}
else if (a < b)
{
cout << a + b;
}
else
{
cout << "Numerele sunt egale";
}
return 0;
}
#include <iostream>
int main(){
int a,b = 0; printf("a = "); scanf("%d", &a);
printf("b = "); scanf("%d", &b);
if(a>b) printf("%d", a*b); else printf("%d", a+b);
}