0 like 0 dislike
請設計一個程式,讓使用者輸入三個整數數字,程式會輸出三個數當中最大的那個

 

範例輸入:

-10 5 99

範例輸出:

99
[Normal] Coding (C) - asked in 2016-1 程式設計(一)AC by (18k points)
Available when: Unlimited - Due to: Unlimited
| 207 views
0 0
Called for Help

39 Answers

0 like 0 dislike
Hidden content!
* *** ***** *


* * * * * * **


* * ** * * *







int bigger (int num1 ,int num2,int num3);







int main()



{


*** **** * * **** * number1, number2, number3;






** ** * * * * * ***** **** * ** &number1 ** * * * ******* **


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






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


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



}







int bigger(int num1 ,int num2,int num3)



{


***** * * **** ** * > num2 * * ** num1 > num3){


* * ** *** * ** *********** * * * *** ** * ** * * * *** ** ***** num1;


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


** * ***** * * * * * * * ****** * * * * if (num2 > * **** * * num2 > num3){


***** ** * * * **** * * ** * * *** * *** **** * **** num2 ;


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


** * * *** ** ** * *** * *** * ** *** ** * * * ** *** ** {


* ** * **** ** ******* ** ** ** *** *** * **** ****** ** *** ** ** * ** * * * * * num3 ;


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



}
answered by (-82 points)
0 like 0 dislike
Hidden content!
* * * ** ****
** ** ** * * ***


* * a,int b,int c);



int * *
* * *** * * **** **
* *** ** * * *** * * **** ** * * **** * ***** * **


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

}











void * num1, int num2, int **

{
* ** ** * * = (num1 *** * * num1 : num2;
* * ** * * *** = (num1 * * * * * num1 : num3;
* * ** ** *** ** ** * * ****** *

}
answered by (-122 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<stdlib.h>

int main()

{

    int a,b,c;
* * **** * * * * ** *** ***
** ** ****** ** ** * ** * * * * **** * ** * *** *
** * *** * ***** ** * *** * ** *
* * * * ** * *** * * * *** *
******** ** ** * * * ** * ** * ** * * * * * * * ** * * *
** ** ** * * ** * ** ** * * ***** * **
* * * * * ** * * * * **** *** ** ** ****** *** * *** *** ** * **
** * *** * * * * * ** * ** *** * ** *** *
* * **** *** * * * * * * * ** ******* * *** ****
*** ****** * **** * * *** * * ***

    return 0;

}
answered by (-103 points)
0 like 0 dislike
Hidden content!
* * * *** **** **
* ** * **


** *** ** **

{
* *


*** **** * %d * ** * * ** * *** * ** *


* * *** = a; * ** * * * *** ** **** * *** *** * **** * * ** ** ** * * ** ** * ** * **** ** ** * * * **** ** **








































*** 0;



}
answered by (-276 points)
0 like 0 dislike
Hidden content!
* * ** * *** ****
* ******
** ** *

{
* a = * = * = 0;
*** ** * * ** *

b = a;

a = 0;
* * * * * ** * * **
* * * *
** *** ** = **
*
=

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


* ** *



}
answered by (-140 points)
0 like 0 dislike
Hidden content!
* ******* ** *
* * * * *** ** *
* * *

{
** a = * = = 0;
* ** * **

a = b;

a = 0;
*** ******* ** *** ** * *
*** ** * **
** * =
*
* = *
**
*** ** **** ** * *


** *



}
answered by (-140 points)
0 like 0 dislike
Hidden content!
***** **** *
** * **** ** **
**

{
a = * = * = 0;
** * ** *

a = b;

a = *
* * *** * *** *
* *
** ** = b;


}
* ***** ** * * * *


* * ** *



}
answered by (-140 points)
0 like 0 dislike
Hidden content!
* ** * ******* **



int main()



{


* **** * * * *** i, num[3] = {0}, max;






*** **** ****** ** * ** = 0;i * 3; i++)


*** * **** ***** **** ** * * * * * * *****
** * * ** * ** ** * *** = ***
* * ** * * * ** * ** ** = 1; i * ** 3;i++)
* * ** * * * * * * * * ** ****
* ** * * * * *** = * ***




** * ** * * * *** ** * * * * ** max);












* ***** ** * 0;
*** * ** *
answered by (-120 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



int main()

{
** ** ** *** ** **** * * *** ** a , b , c ;
* * * ** ***** * *** * * ** ** ** * *** *** * *** **
* ***** * *** > b,a > c)
* * * * * *** **** ** * ** * ** * * a);
** ** ** * * ** ** if(b > c)
* * ** * ** ** * * * ********* * *** b);
** * *** ** * ** * *
* * ** ******** * ** ****** ** *** * **** c);

}
answered by (-90 points)
0 like 0 dislike
Hidden content!
* * *** *



int main()

{

int num[3],i;


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


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




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



return 0;









}
answered by (-383 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.63.203
©2016-2020

Related questions

0 like 0 dislike
35 answers
[Normal] Coding (C) - asked Oct 13, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 249 views
0 like 0 dislike
43 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 247 views
0 like 0 dislike
49 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 219 views
0 like 0 dislike
0 answers
[Resource] asked Dec 31, 2016 in 2016-1 程式設計(一)AC by laich (939 points)
Available when: Unlimited - Due to: Unlimited
| 38 views
9,614 questions
94,666 answers
76,330 comments
2,916 users