1 solutions
-
0
C :
#include<stdio.h> int main() { float a,b,c,d; a=2.37; b=12.43; c=22.1; d=a*b-c; printf("%.2f*%.2f-%.1f=%.4f",a,b,c,d); return 0; }C++ :
#include<stdio.h> int main() { float a,b,c,d; a=2.37; b=12.43; c=22.1; d=a*b-c; printf("%.2f*%.2f-%.1f=%.4f\n",a,b,c,d); return 0; }Pascal :
begin writeln('2.37*12.43-22.1=7.3591'); end.
- 1
Information
- ID
- 20120
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By