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

PROGRAMMING:Multi branch representation multiple problem

Luz5年前 (2021-05-10)题库400
Keyboard input a positive integer a, if a is a multiple of 3 but not a multiple of 5, then output the remainder of a divided by 5. If a is a multiple of 5 but not a multiple of 3, the remainder of a divided by 3 is output. If a is neither a multiple of 5 nor a multiple of 3, output the remainder of a divided by 15
###Input format:
1 positive integer
###Output format:
If it is a multiple of 3 but not a multiple of 5, the remainder of a divided by 5 is output.
If a is a multiple of 5 but not a multiple of 3, the remainder of a divided by 3 is output.
If a is neither a multiple of 5 nor a multiple of 3, output the remainder of a divided by 15.
If a is not a positive integer, there is no output.
###Input example:
```in
eighteen
```
###Output example:
```out
three
```







answer:If there is no answer, please comment