Mamajonov Fayzullo 213 -20 guruh 6- labaratoriya
Download 61.89 Kb. Pdf ko'rish
|
Hujjat (1)
//Mamajonov Fayzullo 213 -20 guruh 6- labaratoriya
1 topshiriq #include unsing namespace std; int main () { int n; cout<<"Massiv elementlari sonini kiriting: "; cin>>n; float a[n]; float k=0,s=1; for(int i=0; i {
cout<<"a"<<"["<
}
k=k+a[i]; }
cout< for(int i=0; i {
cout< s=s*a[i]; }
} cout<<"\nO'rta arifmetikdan kichik elementlar ko'paytmasi "<
}
2 topshiriq #include using namespace std; int main () { float a[8]; int k=0; for(int i=0; i<8; i++) {
cout<<"a"<<"["< cin>>a[i]; } for(int i=0; i<8; i++) { if(a[i]>3) { cout<
}
} cout< Download 61.89 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling