1 solutions
-
0
C :
#include <stdio.h> int main(void) { double a, b, c; scanf("%lf%lf%lf", &a, &b, &c); printf("%.2f\n%.2f\n", (a+b+c)/3, a*b*c); return 0; }C++ :
#include<cstdio> using namespace std; int main() { double a,b,c,s,v; scanf("%lf%lf%lf",&a,&b,&c); s=(a+b+c)/3; v=a*b*c; printf("%.2lf\n",s); printf("%.2lf\n",v); return 0; }Pascal :
program ygj288; var a,b,c,d,e:real; begin read(a,b,c); d:=(a+b+c)/3; e:=a*b*c; writeln(d:0:2); write(e:0:2); end.
- 1
Information
- ID
- 18515
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By