View Code of Problem 109

#include "stdio.h"

void main()
{	
	int i,t;
	int a,b;
	int s[100];
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
		scanf("%d%d",&a,&b);
		s[i]=a+b;
	}
	for(i=0;i<t;i++)
	{
		printf("%d\n",s[i]);
	}
	
}

Double click to view unformatted code.


Back to problem 109