Buyurun Program kodları belki biraz geç olmuş olabilir ama;
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
typedef struct{
char ad[20];
char soyad[20];
float vize;
float final;
float ort;
} ogrenci;
unsigned int a;
printf("Ogrenci Sayisini Giriniz: ");scanf("%u", &a);
ogrenci ogr[a];
int i;
for (i=0; i<a; i++)
{
printf("%d.Ogrencinin Adi: ",i+1);scanf("%s",ogr.ad);
printf("%d.Ogrencinin Soyadi: ",i+1);scanf("%s",ogr.soyad);
printf("%d.Ogrencinin Vize Notu: ",i+1);scanf("%f",&ogr.vize);
printf("%d.Ogrencinin Final Notu: ",i+1);scanf("%f",&ogr.final);
ogr.ort=((ogr.final*0.6)+(ogr.vize*0.4));
printf("----------------------------------------------------\n");
}
for (i=0; i<a; i++)
{
if (ogr.ort>50 && ogr.ad[0]=='a')
{
printf("%d.Ogrencinin Adi: %s \n",i+1,ogr.ad);
printf("%d.Ogrencinin Soyadi: %s \n",i+1,ogr.soyad);
printf("%d.Ogrencinin Ortalamasi: %f\n",i+1,ogr.ort);
printf("----------------------------------------------------\n");
}
}
system("PAUSE");
return 0;
}