Guruh talabasi Azamova Mashrabxonning Dasturlash (amaliy) fanidan yozgan dedline si


Download 6.15 Kb.
Sana03.11.2023
Hajmi6.15 Kb.
#1743890
Bog'liq
621-23 guruh talabasi Azamova Mashrabxon


621-23 guruh talabasi Azamova Mashrabxonning Dasturlash (amaliy) fanidan yozgan dedline si
5.1)
#include
#include
using namespace std;
int main()
{
float a,b,x,y;
cin>>a>>b;
y=(a+b)/2;
x=sqrt(abs(a)*abs(b));
cout<return 0;
}
5.2)
#include
#include
using namespace std;
int main()
{
int a,x,y;
cin>>a,x;
if (x>6)
y=5*pow(x,5)+pow(x,4)+pow(x,3)+1;
else if (x>=2 and x<=6)
y=3*pow(x,2)-2*x+a*x;
else if (x<2)
y= 3*pow(sin(x),2)+4;
cout<return 0;

}
5.3)


#include
using namespace std;
int main()
{
int kun;
cin>>kun;
switch (kun)
{
case 1: cout<<"Dushanba "; break;
case 2: cout<<"Seshanba "; break;
case 3: cout<<"Chorshanba "; break;
case 4: cout<<"Payshanba "; break;
case 5: cout<<"Jumo"; break;
case 6: cout<<"Shanba "; break;
case 7: cout<<"Yakshanba "; break;
}
return 0;


}

Download 6.15 Kb.

Do'stlaringiz bilan baham:




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