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

PROGRAMMING:The sum of a batch of numbers divisible by 3 or 7

Luz5年前 (2021-05-10)题库320
Enter a batch of positive integers with - 1 as the termination mark. Find the sum of the numbers that can be divided by 3 or 7.
###Input format:
In a row, enter several integers separated by spaces (no more than 15), and finally enter - 1 to end the input. Only one space can be used between the data.
###Output format:
Directly output integer result without any additional characters.
###Input example:
```in
3 5 6 8 9 14 25 -1
```
###Output example:
```out
thirty-two
```






answer:If there is no answer, please comment