Răspuns:
1) L-ai scris gresit, deci nu ma bag (nr y atunci?)
2)#include <iostream>
using namespace std;
int main()
{ int y,z;
cin >> y >> z;
if(y+z==0)
{ cout << "1";}
else { cout << "0";}
return 0;
}
3)#include <iostream>
using namespace std;
int main()
{ int x,y;
cin >> x >> y;
if(x>y)
{cout << x%10;}
else
{cout << y%10;}
return 0;
}
Explicație: