UVA 12578 - 10:6:2 Shipu Ahamed - 01 Sep 2020 Problem PDFSolution:#include #include #include #define Pi 2*acos(0.0) int main() { int t; double b,c,r,h,g,n; scanf("%d",&t); while(t--) { r=0; scanf("%lf",&n); r=n/5; h=(n*6)/10; r=Pi*r*r; g=(n*h)-r; printf("%.2lf %.2lf\n",r,g); } return 0; } https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/12578/12578.cpp