1:
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
if (a / 100 + a % 10 == a / 10 % 10)
cout << "DA";
else
cout << "NU";
return 0;
}
2:
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a % 10 > b % 10)
cout << a;
else
cout << b;
return 0;
}
Succes! Sper ca ti-am fost de ajutor.