for (int i=0;i
cin>>name[i].ism>>name[i].sana>>name[i].ball;
sum+=name[i].ball;
}
for(int i=0;i
cout<<"\n\nAbituriyent ismi "<
}
cout<<"\n\n O'rtacha ball "<
return 0;
}
2-MISOL (INSTITUT)
#include
using namespace std;
struct INSTITUT {
string nomi;
string yonalish;
int Talabalar_soni;
float ball;};
int main(){
INSTITUT name[30];
int soni;
cout<<"INSTITUT soni : "; cin>>soni;
float sum=0;
for (int i=0;i
cin>>name[i].nomi>>name[i].yonalish>>name[i].Talabalar_soni>>name[i].ball;
sum+=name[i].ball;}
for(int i=0;i
cout<<"\n\nINSTITUT nomi "<
cout<<"\n\nINSTITUTlar O'rtacha ball "<
return 0;
}
Do'stlaringiz bilan baham: |