Vă rog mult toate problemele!!!!
Dau coroană!!!!
Răspunsuri la întrebare
Răspuns:
Raspuns
Explicație:
#include <iostream>
using namespace std;
int main()
{
///1.
/**int a,b;
cin>>a>>b;
if(a==b)
cout<<"DA";
else cout<<"NU";*/
///2.
/**int a,b,c;
cin>>a>>b>>c;
if(a==b&&a==c)
cout<<"DA";
else cout<<"NU";*/
///3.
/**int a,b,c;
cin>>a>>b>>c;
if(a==b||a==c||b==c)
cout<<"DA";
else cout<<"NU";*/
///4.
/**int a,b;
cin>>a>>b;
if(a>b)
cout<<a-b;
else if(a<b)
cout<<b-a;
else cout<<0;*/
///5.
/**int n;
cin>>n;
if(n%2==0)
cout<<n/100;
else cout<<n%10;*/
///6.
/**int n;
cin>>n;
if(n%10>n/10)
cout<<n%10-n/10;
else if(n/10>n%10)
cout<<n/10-n%10;
else cout<<0;*/
///7.
/**int a,b,c;
cin>>a>>b>>c;
if(a>=b&&a>=c)
if(b>c){
cout<<a-c;
return 0;}
else {cout<<a-b; return 0;}
if(b>=a&&b>=c)
if(a>c){
cout<<b-c;
return 0;
}
else {cout<<b-a; return 0;}
if(c>=a&&c>=b)
if(a>b){
cout<<c-a;
return 0;}
else {cout<<c-b;
return 0;}
if(a==b&&a==c)
cout<<0;*/
///8.
/**int a,b,c;
int cnt=0;
cin>>a>>b>>c;
if(a%2==1)
cnt++;
if(b%2==1)
cnt++;
if(c%2==1)
cnt++;
if(cnt>0)
cout<<cnt;
else cout<<0;*/
///9.
/**int a,b,c;
cin>>a>>b>>c;
if(a+b==c||a+c==b||b+c==a)
cout<<"DA";
else cout<<"NU";*/
///10.
/**int a,b,c;
cin>>a>>b>>c;
if(a%10==b%10||a%10==c%10||b%10==c%10)
cout<<"DA";
else cout<<"NU";*/
///11.
/**int a,b,c;
cin>>a>>b>>c;
int s1,s2,s3;
s1=a+b;
s2=a+c;
s3=b+c;
cout<<max(max(s1,s2),s3);*/
///12.
/**int a,b,c;
cin>>a>>b>>c;
if(a>0&&b>0&&c>0)
if(a==b&&a==c)
cout<<"Triunghi echilateral";
else if(a==b&&a!=c||a==c&&a!=b||b==c&&b!=a)
cout<<"Triunghi isoscel";
else cout<<"Triunghi oarecare";
else cout<<"Nu se poate forma un triunghi";*/
///13.
/**int mihai,diana;
cin>>mihai>>diana;
if(mihai<diana)
cout<<mihai;
else cout<<diana;*/
}
int a,b,c;
cin>>a>>b>>c;
if(a>=b&&a>=c)
if(b>c){
cout< return 0;}
else {cout< if(b>=a&&b>=c)
if(a>c){
cout< return 0;
}
else {cout< if(c>=a&&c>=b)
if(a>b){
cout< return 0;}
else {cout< return 0;}
if(a==b&&a==c)
cout<<0;