Write a program that let the user input two number and displays the result as the example below:
輸入兩個數字,做加減乘除的運算
Example input 1:
5 6
Example output 1:
5+6=11 5-6=-1 5*6=30 5/6=0.833333
Example input 2:
1.23 3.45
Example output 2:
1.23+3.45=4.68 1.23-3.45=-2.22 1.23*3.45=4.2435 1.23/3.45=0.356522
Remember: Your output maybe 100% correct, but your code matters!
Hidden content!#include <stdio.h>#include <stdlib.h>int main(){ * * * * * ** ** * * * * * ** a,b;* * ** ***** * ** * ***** * ** * ** *** ** * ** * ** * ** ** * ** *** ** * * ** ** ** ** * *** * *** * * *** * ** ** * * * **** * * ** * ** ** ** **** * * * ** * * * * ** * * * * * ** * * *** * ** * * * * * ** *** ** * * * *** * * * * * ** * * *** * * * *** ** * *** * ** * ** * ** * * ** **** * * * * * * 0;}
Hidden content!#include <stdio.h>#include * * ** ** * * * int main(){* * *** * * ** ** * * * * *** * a,b;** * ** * ** ** ** * * *** c;* * ** * ** ** ** * * * * * *** * *** * ** * * ** * **** * * * * ** * ** * * * * * * * %g\n",a,b,a+b);