C:getchar()吞掉输入的空格 #include <stdio.h> #include <string.h> int main(){ int sum = 0 ; char ch; while((ch