//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"<<"["<
cin>>a[i];
}
for(int i=0; i {
k=k+a[i];
}
cout< cout<<"O'rta arifmetikdan kichik elementlar: ";
for(int i=0; i
{
if(a[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<
k++;
}
}
cout<
}