why is it not working??
#include <stdio.h> #include <conio.h> void main() { int a,b,c ,x; printf("enter\n1 for addition\n2 for substraction"); scanf("d%" , &x); switch(x) { case 1 : printf("press any random key"); scanf("%d", &a ); printf("press another key"); scanf("%d" ,&b); c= a+b; printf("sum is %d ", c); break; case 2: printf("press any random key"); scanf("%d",&a); printf("press another key"); scanf("%d" , &b); c = a-b; printf("substraction is %d",c); break; default: printf("invalid"); } }