1)
#include <iostream.h>
int main()
{int a,b;
cin>>a>>b;
if(a>=b)cout<<a; else cout<<b;
return 0;}
2)
#include <iostream.h>
int main()
{int n,s=0;
s=s+n%10;
n=n/10;
s=s+n%10;
n=n/10;
s=s+n%10;
n=n/10;
s=s+n%10;
if(s%3==0) cout<<"Da"; else cout<<"Nu"; //verific dacă suma cifrelor este divizibilă cu 3
return 0;}