Float a,b,c,max1,max2,max3,s


Download 405.46 Kb.
Sana19.06.2023
Hajmi405.46 Kb.
#1601224
Bog'liq
funksiya nodirbek


Fan nomi

Dasturlash 1

FIO

Jo’rayev Nodirbek

Guruhi

710-21










Dastur kodi:


#include
#include
using namespace std;
int main(){
float a,b,c,max1,max2,max3,s;
cout<<"a="; cin>>a;
cout<<"b="; cin>>b;
cout<<"c="; cin>>c;
if(a>(a+b)){
max1=a;
}
else{
max1=a+b;
}
if(a>(b+c)){
max2=a;
}
else{
max2=b+c;
}
if((a+b*c)>1.15){
max3=a+b*c;
}
else{
max3=1.15;
}
s=(max1+max2)/(1+max3);
cout<<"s="<return 0;
}
Natija:

Xulosa:
Men Jo’rayev Nodirbek funksiya mavzusidagi formula orqali manashu natijalarni oldim.Bunda a,b,c lar haqiqiy sonlar bo’lib cout<<”s=” ulardan olingan natijadir.

Download 405.46 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling