Search found 1 match

by a.a.tanim
Sat Jun 01, 2013 2:57 am
Forum: Volume 125 (12500-12599)
Topic: 12578 - 10:6:2
Replies: 16
Views: 2443

12578 - 10:6:2

i m getting WA!!!.
plz Help.



#include<stdio.h>
#include<math.h>
#define PI acos(-1)
int main()
{
double a,r;
unsigned n,i,l;
scanf("%u",&n);
for(i=1;i<=n;i++)
{
scanf("%u",&l);
r=PI*(l/5)*(l/5);
a=(6*(l*l))/10;
printf("%.2lf\t%.2lf\n",r,a-r);
}
return 0;
}

Go to advanced search