Jenia's Homework

Jenia is a very talented girl. She got homework from school. She is such a nerd who cries if she can…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

my second output is coming wrong.I can not find the problem.
#include<stdio.h>
#include<math.h>
int main(){

int t;
double A,A1,X,r,area,p;

scanf(“%d”, &t);
for(int i=1;i<=t;i++)
{
scanf(“%lf”, &A);
X=sqrt(A);
r=X/2;
A1=acos(-1)rr;
area=A-A1;
p=acos(-1)r2;
printf(“%0.9lf %0.9lf”, area,p);
}
return 0;
}