用float定義2個數字,char定義運算符號(+,-,*,/)再使用switch判斷將四則運算做出
輸入為第1個數字(空格)運算符號(空格)第2個數字(列如:2 + 5)中間用空格隔開
input 5 + 6 output 11.000000
input 2 - 9 output -7.000000
input 4 * -3 output -12.000000
input 4 / 10 output 0.400000
Hidden content! ** **** * * * int main(){ ***** * * * * float a,c; * ** ** char b; * * * * * * * * ** ** * %c * * ** ** ** ** * *** *** * ** * * ** **** *** ** * { * * * ** * * * ** *** * * *** * * * * * * * ** * int flag; ** * * * * ** ** ** * * * * * * * *** * ** flag=1;* * ** * * * * * else * ** *