View Code of Problem 111

#include <stdio.h>
#include <string.h>
#include <math.h>
#define N 1000
/*int main()
{
	int a[N];
	while(gets(a)!=EOF)
	{
		
	}
}*/
int main()
{
	int n;
	int a,b;
	
	while(scanf("%d%d",&a,&b))
	{
		if(a==0&&b==0)
			break;
		printf("%d\n",a+b);
	}
	
}

Double click to view unformatted code.


Back to problem 111