- #include<bits/stdc++.h>
- #include<math.h>
- using namespace std;
- int main()
- {
- double num, r,s;
- int t;
- scanf("%d",&t);
- while(t--){
- scanf("%lf",&num);
- r=num/5;
- r=r*r;
- r=acos(-1)*r;
- s=(6*num)/10;
- s=s*num;
- printf("%0.2lf %0.2lf\n",r,s-r);
- }
- return 0;
- }
Thursday, 26 April 2018
Subscribe to:
Post Comments (Atom)
variable declaration of c program
#include <stdbool.h> #include<bits/stdc++.h> #include <stdio.h> #include <string.h> #include <std...
-
#include<bits/stdc++.h> #include<cmath> #include<algorithm> #define mx 20000005 using namespace std ; ...
-
#include<stdio.h> #include<string.h> int main ( void ) { char y [ 100001 ] ; int m4,m100,m400,m15...
-
#include<bits/stdc++.h> using namespace std ; int main ( ) { int arr [ 10005 ] ; int n,m,mi,d ; ...
No comments:
Post a Comment