3 喜歡 0 不喜歡
18.3k 瀏覽

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!

[練習] Coding (C) - 最新提問 分類:Chapter 3: Formatted Input/Output | 用戶: (12.1k 分)
ID: 25729 - 從幾時開始: 無限制 - 到幾時結束: 無限制

修改於 用戶: | 18.3k 瀏覽

116 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>

int main()
{
* * ***** ** **** ** * a,b,result;

* ***** * ** * ** * * **** *** * *

* ******* ** ** * ** * * ** ** *** * * * ** *
* * *** *** * * * **** * * ** ** *
** * *** * * **** ******** * **** *** *** * * * *
* ** * * **** * ** * * * *** * *** ***

return 0;
}
最新回答 用戶: (82 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include **** * *
int main ()
{
* * * * ** *** a , b, c, d ;

**** * * ** * ******** * * *** * ** *** ** * ****

** * * ** * * ** * ** * ** * * + b);
*** ** ** *** *** * *** ** *** ** *
* **** ***** * * *** * * *** * b,a * b);
* * * * ** * ** ** ** ****** **** * ** *
 return 0;
}
最新回答 用戶: (-140 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include ****** *******
int main ()
{
** * * * ** * * *** a , b, c, d ;

** **** * ******* ** ** * **** * ** * * * *

* *** * * * * * * * **** * * * * * + b);
*** *** * * * *** *** * **** * * ** * * *
* ** * * *** * * ** ** ** ** * * * b,a * b);
** ** ** ** ** * ******** ****** ** **** ***
 return 0;
}
最新回答 用戶: (-167 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main (void)

{
    float a,b;


** ** * * ** ** * ******* * *** ****
* **** * *** *** ** ** * ** *** * * **** * *** *

** * * * * * *** * * **** **** * *** * *
*** * * * ******* * * * *** ** ** **** *** ** **
* *** * * **** * ** ** * ******* * * * **
* * *** ** ** ***** ** * ** * * ** * **
** * * * * * **** *** 0;

}
最新回答 用戶: (-140 分)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>
int main(void)
{
float number1;
float number2;
** **** ** ** ** * * * *** ****** *
*** * * ** ***** **** *** * * *
** ** ** **** * * * ***** ** **
** ***** * *** **** * *** * * ** * **** *
* * ** ** * ** ** *** * *** *** * *

* **** ** ***** ****** ** * * 0;

}
最新回答 用戶: (-254 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>
int main(void)
{
float number1;
float number2;
* * ** * *** *** * * ** ** ** **
** * * *** * *** ** ** ***** * **** *
***** * **** ** *** ** ** ** ** * *** ***
** * * * ** * * * * * *
** *** ** ****** ** * * ** * ***** ** *

* ***** * ** * * ** * 0;

}
最新回答 用戶: (-254 分)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>
int main()
{
float number1;
float number2;
* **** * ** ** **** ********** * *
** * ** * * *** * * ******* *** * *** * * ***
* ** * * * * ** ******* *** ** * * ****
* ** * *** **** * ******* *** *
* ** * ***** * * * ** * ** ** *** ** * * **

* ***** ***** ***** ***** 0;

}
最新回答 用戶: (-254 分)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>

int main()
{
** ** ****** * *** num1;
*** * * * ***** * * ** num2;
*** ** ***** * *** * * **** add;
** *** * * ****** * * ** sub;
** ** * ***** * * mul;
* ** * *** *** *** * div;
** ** ** *** ** ** * *
* * ** * * ***** * * * *** * * * ** &num2);
** * * **** *** ** ***
******* *** * * * * = num1+num2;
* ******* * **** *** ****** = num1-num2;
* *** * * * * ** ****** *** = num1*num2;
* ****** ****** * = num1/(double)num2;

* * ** * * ** * ** * * ** * * ** **** ** *
********** * * ** * ** ** * * ** ** ** ** ** * *
** * ** ** *** * **** *** * ** **** *** * * *
**** * *** ** * * *** * * * ** ** ** * **
    
** *** ** ** * ** 0;
}
最新回答 用戶: (-193 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
** ***** * * * **
int main(){
float ***
* **** ** * ** *** * ** ** **
c=a+b;
d=a-b;
e=a*b;
f=a/b;
* * **** * ** ** ***** *
*** *** **** * *** * * *
** **** *** ** ** *****
*** * ** *** * *
return 0;}
最新回答 用戶: (-284 分)
0 0
Case 0: Correct output
Case 1: Correct output
0 喜歡 0 不喜歡
內容已隱藏
**** * *
int main(){
float * * **
* * * ********** **** ** *** * ** *
c=a+b;
d=a-b;
e=a*b;
f=a/b;
** * * * * *
* * **** * * * * ** ***
* * * *** * * **
* ***** * * ** *
return 0;}
最新回答 用戶: (-32 分)
0 0
Case 0: Correct output
Case 1: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.58.181
©2016-2025

相關問題

1 喜歡 0 不喜歡
0 回答
[Resource] 最新提問 10月 14, 2017 分類:Chapter 3: Formatted Input/Output | 用戶: thopd (12.1k 分)
ID: 26948 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 14 瀏覽
12,783 問題
183,442 回答
172,219 留言
4,824 用戶