include <stdio.h>
int main()
{
int i,j,vize_1,ogr_sayisi,enuzunaralik;
int not_araligi[10] = {0,0,0,0,0,0,0,0,0,0};
printf("Kac Ogrenci Var : ");
scanf("%d",&ogr_sayisi);
for (i=1;i<=ogr_sayisi;i++)
{
printf("%d. Ogrencinin Notunu Giriniz : ",i);
scanf("%d",&vize_1);
if (vize_1>=100) not_araligi[9]++;
else if (vize_1<=0) not_araligi[0]++;
else not_araligi[(vize_1 - 1) / 10 ]++;
}
enuzunaralik = not_araligi[0];
for (i=2;i<=10;i++)
{
if (not_araligi[i-1] > enuzunaralik)
enuzunaralik = not_araligi[i-1];
}
printf("\n\n");
printf("1. ViZE SONUCLARININ DAGILIM ARALIKLARI");
printf("\n");
printf("--+-----------------------+\n");
for (i=enuzunaralik;i>=1;i--)
{
printf("%2dI ",i);
for (j=1;j<=10;j++)
{
if (not_araligi[j-1]>=i) printf("**");
else printf(" ");
}
printf(" I\n");
}
printf("--+-----------------------+\n");
printf(" 102030405060708090100 ");
return 0;
}