View Code of Problem 111

#include <stdio.h>
//输入有多组数据。每组数据一行,包含两个整数A和B,A,B>0。输入以0 0结束,这组数据不该被计算。
int main()
{
  int a,b;
  while(scanf("%d%d",&a,&b)!=EOF)
  {
  	
    if(a==0 && b==0)
      return 0;
	else
	  printf ("%d\n",a+b);
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 111