#include <stdio.h>
int main()
{
int N,i;
int vize_1 = 0,vize_2 = 0,final,basarili = 0,basarisiz = 0,ogr_no = 0;
float ort = 0,ort_toplam = 0,genel_ort = 0;
printf("\n ");
printf("\n ");
printf("\n -PROGRAMA HO$GELDiNiZ-");
printf("\n ");
printf("\n ");
printf("\n ");
printf(" LUTFEN OGRENCi ADEDiNi GiRiNiZ : ");
scanf("%d",&N);
for(i=1;i<=N;i=i+1)
{printf("\n ");
printf(" %d. Ogrenci No : ",i);
scanf("%d",&ogr_no);
printf("\n ");
printf(" 1. Vize Notunu Giriniz : ",i);
scanf("%d",&vize_1);
printf("\n ");
printf(" 2. Vize Notunu Giriniz : ",i);
scanf("%d",&vize_2);
printf("\n ");
printf(" Final Notunu Giriniz : ",i);
scanf("%d",&final);
printf("\n ");
ort=(vize_1+vize_2)*0.25+(final*0.5);
ort_toplam=ort_toplam+ort;
genel_ort=ort_toplam/N;
printf("\n ");
printf("\n ");
printf("\n ");
if(ort<60)
{printf("\n OGRENCi NO = %d",ogr_no);
printf("\n ");
printf("\n ");
printf("\n ORTALAMA = %f",ort);
printf("\n ");
printf("\n ");
printf(" -*-*-BA$ARISIZDIR-*-*-");
printf("\n ");
printf("\n ");
basarisiz=basarisiz+1;
}
else
{printf("\n OGRENCi NO = %d",ogr_no);
printf("\n ");
printf("\n ");
printf("\n ORTALAMA = %f",ort);
printf("\n ");
printf("\n ");
printf(" -*-*-BA$ARILIDIR-*-*-");
printf("\n ");
printf("\n ");
basarili=basarili+1;
}
}
printf("\n ");
printf("\n ");
printf("\n ");
printf("\n ");
printf("\n -_-_SONUCLAR_-_-");
printf("\n ");
printf("\n GiRiLEN OGRENCi ADEDi = %d",N);
printf("\n OGRENCi NO = %d",ogr_no);
printf("\n BA$ARILI OGR SAYISI = %d",basarili);
printf("\n BA$ARISIZ OGR SAYISI = %d",basarisiz);
printf("\n GENEL ORTALAMA = %f",genel_ort);
printf("\n ");
printf("\n PROGRAMI YAZAN : M.F.BiLGEHAN SOLMAZ");
printf("\n ");
printf("\n ");
return 0;
}