1 solutions
-
0
C :
#include "stdio.h" #include "math.h" int main() { int n; scanf("%d", &n); int a = n / 100, b = n % 100; printf("%d,%d\n", a, b); printf("sum=%d,sub=%d,multi=%d\n", a + b, a - b, a * b); if (b == 0) { printf("The second operator is zero!\n"); } else { printf("dev=%.2f,mod=%d\n", a * 1.0 / b, a % b); } return 0; }
- 1
Information
- ID
- 89
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By