question-MAXLN - THE MAX LINES
sol-
#include<stdio.h>
#include<math.h>
int main()
{int t,i;
long long int r;
double s;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%lld",&r);
s=(4*r*r)+0.25;
printf("Case %d: %0.2lf",i,s);
printf("\n");
}
}
Comments
Post a Comment