View Code of Problem 113

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;

int main() {
	int first=0;
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF) {
		getchar();
		if(first==0) {
			printf("%d\n",a+b);
			first=1;
		} else {
			printf("\n");
			printf("%d\n",a+b);
		}

	}
}

Double click to view unformatted code.


Back to problem 113