My issue
output is coming properly but runtime error every time I submit it
My code
#include <stdio.h>
int main() {
// your code goes here
char op;
int a, b;
float res;
scanf("%c", &op);
scanf("%d %d", &a, &b);
switch(op){
case '+':
printf("%d", a + b);
break;
case '-':
printf("%d", a - b);
break;
case '*':
printf("%d", a * b);
break;
case '/':
printf("%d", a / b);
break;
default:
printf("Invalid Choice\n");
}
return 0;
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC37/problems/LJAJAG27