in the above program to get the char i scanf is used two times. If using it for a single time the control jumps to the switch case after getting the integers a and b.
printf("Enter Two numbers\n");
printf("a to add\ns to Subtract");
c = a + b;
c = a-b;
Please explain the flow why this is happening.
also explain the proper usage of scanf..
Thanks and regards,