Răspuns :
Răspuns:
#include <iostream>
using namespace std;
int main() {
int a, b;
cout <<"a=";
cin >> a;
cout <<"b=";
cin >> b;
if (a == b)
cout <<0;
else if (a< b)
cout<<1;
else // cazul a > b
cout<< 2;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int x, y;
int main ()
{
cin>>x>>y;
if (x==y)
cout<<"0";
else if (x<y)
cout<<"1";
else
cout<<"2";
return 0;
}