Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93949 | 胡海峰老师 | A+B 输入输出练习III | C | Accepted | 1 MS | 196 KB | 375 | 2024-10-19 16:23:20 |
/* Input 1 5 10 20 0 0 Output 6 30 */ #include <stdio.h> int main() { int a,b,c; scanf("%d%d",&a,&b); // and--- && or--- || not---- ! while( !(a==0 && b==0) ) //条件成立: 循环去做 , 如果不成立,循环结束 { c = a + b ; printf("%d\n",c); scanf("%d%d",&a,&b); } return 0; }