View Code of Problem 3855

#include<stdio.h>
int main(){
	int T;
	scanf("%d",&T);
	while(T--){
		int a,b;
		char op;
		scanf("%d",&a);
		scanf("%c",&op);
		scanf("%d",&b);
		//printf("%d %c %d",a,op,b); 	
		if(op=='+')
		printf("%d\n",a+b);
		else
		printf("%d\n",a-b);
	} 
} 

Double click to view unformatted code.


Back to problem 3855