3 like 0 dislike
197 views
寫一個程式讀入三個正整數a,b,c. 計算並印出其中的最小值.

Sample Input:

100 90 80

Sample Output:

80

 

參考書籍:由片語學習C程式設計
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21827 - Available when: Unlimited - Due to: Unlimited
| 197 views

1 Answer

0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main()
{
* ** * *** *** **** a,b,c;
* * *** * * **** ** *** * *** ** * * **** * * ** ** * * ***
* ** * * *** * * ** * *** * * ***** *** * * * ***
*** * **** * * * **** *** ** * ** * ** ** ******** ** ** ** ****
*** ******* * * ** * if(b<a&&b<c)
* ****** *** * *** * ** *** * * * ** * * ** * * * ** * ** * ** *
* * ** ** ** *** ** *****
** * * *** ** * **** ******** * * ** ***** *
** *** ***** **** *** ** 0;
}
answered by (466 points)
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.70.174.22
©2016-2023

Related questions

3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21842 - Available when: Unlimited - Due to: Unlimited
| 165 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21833 - Available when: Unlimited - Due to: Unlimited
| 148 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21832 - Available when: Unlimited - Due to: Unlimited
| 172 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21831 - Available when: Unlimited - Due to: Unlimited
| 151 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21830 - Available when: Unlimited - Due to: Unlimited
| 154 views
14,666 questions
235,516 answers
212,167 comments
5,696 users