Hello, I cannot seem to find a way to get my program to read a WHOLE word and then so something according to that word.
Basically, my program needs to ask the user about 3 options, to multiply, sum, or exit.
I thought of doing something like this:
But now, I want it to read the whole word, not the first character, I can't find my way around this, Help!
case 'm': printf("%f * %f = %f\n", a,b,c); break;
... .... ...
default : printf("Error!\n); return 0;