View Code of Problem 109

#include<stdio.h>
int main()
{
	int a,b,c;
	int t;
	scanf("%d",&t);
	while(t--){
		scanf("%d %d",&a,&b)
		printf("%d\n",a+b);
	}
    return 0;
}
/*
Main.c: In function 'main':
Main.c:9:3: error: expected ';' before 'printf'
   printf("%d\n",a+b);
   ^
Main.c:4:10: warning: unused variable 'c' [-Wunused-variable]
  int a,b,c;
          ^
*/

Double click to view unformatted code.


Back to problem 109