从键盘读入一些非负整数并且将其累加求和。当程序读入负数时,该数字不做处理,结束键盘输入,输出累加求和的结果及累加的项数(不超过1000项)。#include <stdio.h>int main() { int num, sum = 0, count = 0; while (1) { scanf("%d", &num); if (num < 0) { break; } if (num >= 0) { sum += num; ...