⚠️Urgent ⚠️............
Răspunsuri la întrebare
Răspuns:
1.
#include <iostream>
using namespace std;
int main()
{
int a,b,c,x,y;
cout<<"a="; cin>>a;
cout<<"b="; cin>>b;
cout<<"c="; cin>>c;
cout<<"x="; cin>>x;
cout<<"y="; cin>>y;
if(a<x && c<x && c>y)
cout<<"Da";
else
cout<<"Nu";
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
int v1,v2,v3,v4;
cout<<"v1="; cin>>v1;
cout<<"v2="; cin>>v2;
cout<<"v3="; cin>>v3;
cout<<"v4="; cin>>v4;
if(v1>17 && v2>17 && v2>17 && v3>17)
cout<<"Da";
else
cout<<"Nu";
return 0;
}
3.
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"a="; cin>>a;
cout<<"b="; cin>>b;
cout<<"c="; cin>>c;
if((b*b+c*c==a*a) || (a*a+c*c==b*b) || (a*a+b*b==c*c))
cout<<"Da";
else
cout<<"Nu";
return 0;
}