UVA 10370 - Above Average

UVA Sep 01, 2020

Problem PDF

Solution:

#include

int main()

{
    int a[1020],i,c,d,e,m;
    float w,k,n,j;
   while( scanf("%d",&c)==1)
   {

     for(d=1;d<=c; d++)

    {
        w=0;
        e=0;
        k=0;
    scanf("%f",&j);

    for(i=0;iw)
    e=e+1;
        }
    n=(100*e)/j;
     printf("%.3f%%\n",n);
        }
    }
return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10370/10370.cpp

Tags

Shipu Ahamed

CSPO® | Partly Product, Project Manager and Partly Software Engineer.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.