-->
当前位置:首页 > 题库

PROGRAMMING:Simple I / O

Luz5年前 (2021-05-10)题库384
Write a program, input two positive integers a and B (less than 1000) from the keyboard, and calculate their quotient (A / b) and remainder (a% B) respectively. When outputting, the quotient requires 2 decimal places to be reserved and the third decimal place to be rounded.
###Input format:
Give a and B in a row, separated by spaces.
###Output format:
Output a / B and a% B in a row in sequence with space interval, and there is no extra space and newline at the end of the row
###Input example:
```in
844 21
```
###Output example:
```out
40.19 4
```






answer:If there is no answer, please comment