16-variant
a);
b) Tomonlari a,b,c larga teng bo’lgan uchburchakning turini aniqlang.
JAVOBLAR:
a)
#include
#include
using namespace std;
int main()
{
float x,y,a,b;
double z;
cout << " x , y va z o'zgaruvchilarni kiriting\n";
cout << " x="; cin >> x;
cout << " y="; cin >> y;
cout << " z="; cin >> z;
a=sqrt(10*(pow(x,1/3)+pow(x,y+2)));
b=pow( asin(z),2)+x+y;
cout << " a=" << a;
cout << " b=" << b;
}
x=16.55
y=-2.75
z=0.15
a=3.34943 b=13.8227
b)
#include
using namespace std;
int main()
{
int a,b,c;
cout <<" uchburchak tomonlari a, b, c qiymatini kiriting \n";
cout << "a="; cin >> a;
cout << "b="; cin >> b;
cout << "c="; cin >> c;
if(a==b && b==c && c==a)
{
cout<<"Uchburchak teng tomonli\n";
}
else if(a==b || b==c || c==a)
{
cout<<"Uchburchak teng yonli\n";
}
else
{
cout<<"Uchburchak turli tomonli\n";
}
return 0;
}
Do'stlaringiz bilan baham: |