I am having a little problem with the program below.
If I input "2/5*2/6" the char "/6" will be stored, so when I try to multiply by a simple variable by entering "3/7*6" the program will read "3/7*6/6".
is there a way to prevent this and if possible can you guys and or girls show me a work around?
Hi, I see you've declared a few char at line 31 without initialization. Then you test their values for example at line 53.
Anyway, i only changed line 31 to this: char ope1, ope2, ope3 = ' ';
and tested this input 2/5*2/6 which gave the result of 1/15 as expected, given u mean to do: (2/5)*(2/6)