1 solutions
-
0
C :
#include<stdio.h> #include<math.h> void fun(int x,int *a,float *b,float *c); int main() { int x,a; float b,c; scanf("%d",&x); fun(x,&a,&b,&c); printf("%d %.2f %.2f",a,b,c); return 0; } void fun(int x,int *a,float *b,float *c) { *a = x*x; *b = sqrt(x); *c = 1.0/x; }
- 1
Information
- ID
- 17548
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By