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

PROGRAMMING:C programming experiment 3-6

Luz5年前 (2021-05-10)题库522
Input some integers, program to calculate and output the sum of all positive numbers, input negative numbers without accumulation, continue to input the next number. When zero is entered, it means the end of data input.
###Input format:
Enter several integers in a row, and separate the data with spaces.
###Output format:
Output the sum of positive numbers and the number of positive numbers in a row, separated by commas. See the output example.
###Input example:
```in
-3 5 7 -1 3 8 -9 26 0
```
###Output example:
```out
sum=49,count=5
```







answer:If there is no answer, please comment