#include <stdio.h> int main() { long long a, b; int t; char ch; scanf("%d", &t); getchar(); while(t--) { scanf("%lld%c%lld", &a, &ch, &b); if(ch == '+') printf("%lld\n", a + b); else printf("%lld\n", a - b); } return 0; } |
Double click to view unformatted code.