# Jenia's Homework

Jenia is a very talented girl. She got homework from school. She is such a nerd who cries if she can’t complete her homework every day. Yesterday her math teacher taught her about circles, semi-circles, square etc. gave her a geometric shape and asked her to find the area and perimeter of the shaded region given the area A of the Square where four quarter circles with the same radius are inside the square. She has been thinking and thinking for the whole evening and eventually slept with frustration. Can you help her to find the area and perimeter of the shaded region given the area of the square?

This is a companion discussion topic for the original entry at https://toph.co/p/jenia-s-homework

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;
}