#include <stdio.h> int main() { while(1){ int a,b; scanf("%d %d",&a,&b); if(a==0&&b==0){ return 0; } printf("%d\n",a+b); } return 0; }
利用return 0来结束