#include <cstdlib>
#include <iostream>
float a,b,top1,top2,top3,top4,top5,c1,c2,c3,c4,c5;

using namespace std;

int main(int argc, char *argv[])
{
cout<<"LUTFEN 1-5 ARASI 20 ADET SAYI GIRIN "<<endl;
cout<<" "<<endl;
bas:
top1=0;
top2=0;
top3=0;
top4=0;
top5=0;
for(b=0;b<20;b++){
cout<<"SAYI:";
cin>>a;

while(a<1||a>5){
cout<<"tekrar deneyiniz!!!"<<endl;
goto bas;
}}


if(a==1)top1=top1+1;{
c1=(top1)/(20)*(100);
cout<<"1 sayisi=%"<<c1<<endl;}
if(a==2)top2=top2+1;{
c2=(top2)/(20)*(100);
cout<<"2 sayisi=%"<<c2<<endl;}
if(a==3)top3=top3+1;{
c3=(top3)/(20)*(100);
cout<<"3 sayisi=%"<<c3<<endl;}
if(a==4)top4=top4+1;{
c4=(top4)/(20)*(100);
cout<<"4 sayisi=%"<<c4<<endl;}
if(a==5)top5=top5+1;{
c5=(top5)/(20)*(100);
cout<<"5 sayisi=%"<<c5<<endl;}










system("PAUSE");
return EXIT_SUCCESS;
}