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
| 126 views
0 0
Called for Help

39 Answers

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

#include<stdlib.h>



int main()

{
* ****** * * * * ** a,b,c,m;

    
** ** *** * *** *** *** * %d * * * * ****** *** * *** ******
* *** * * *
** ** ** ***
** ** ***** * * * ******** ****
* ** * * * * **** *
** * * * * ** ** * *** *** * *
** * ** ** * * **** *
** ** ** *** ** ******** ** ** *** ** ** *
* * ** ** * ** **
** ** ** ** * * * **
** ***** * ** **** *** * *** **** * *** ** **** ****
** * ***** * *** * ***** ** 0;

}
answered by (-124 points)
0 like 0 dislike
Hidden content!
#include * ****** *

#include * ** ** *



int main()

{
* **** ****** *** * * math[2];
** *** * ***** * * * i,max;


** * **** ** ** *** * * = 0;i <= 2;i ++)
* * * **** **** *** * ** * ** * *** **** ****
***** ** ** * ***** ** *** = 0;i <= 2;i ++)
*** ** ** * ******* ** * **
*** *** * * ** ** * * **** ** ** ** ** ** **** ** >= math[i+1])
**** ** *********** * ** **** ** * * * * * * ****** ** * * = math[i];
* ***** **** * * ***
* ** *** * ** ** * ***** ** *** * *** * max);




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

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



int main()

{
* * ** ** ** * * ** ** * num[3];
* *** * ** *** * * * * i;
* * * * ** *** * * max;
***** **** ** * **** *** * * *
**** * ** *** ** * * * (i=0;i<3;i++)
** * * * * ** * * * *** ** * * * ** **
* ****** ***** ** **
*** ** * * * * * ** *** ***
* * *** **** * * (i=1;i<3;i++)
* * * ** * * ** * **
* * ** ****** **** *** ** ** * max < num[i] )
* * ** *** ** * * ** ** * ** * * * * * ** *** * = num[i];
* *** ** ** * **** *****
* ** * *** ** * ** ******** * ** * * *

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

#include <stdlib.h>



main ()

{
** ** * *** ** num[3],i,max;
* * * * ** * *** (i=0;i<3;i++)
* ** * ** * * * * *
** * ** * ***** *** * ** *** **** **** * * *** * *** * **** ** *
* * *** ** * ** ***** ** ** * * * **
** * ** *** * **
** *** * * ** * (i=1;i<3;i++)
***** * ***** ** * * * **
* *** * ** ** *** *** ** * ******* * * * * ** * (max < num[i])
* * * * ****** ** * ** ***** * * *** **** ** *** * ** **** * * *
** **** * ** ** *
** **** ****** * *** ***** ***** * *
* ** **** **** * 0 ;

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

#include <stdlib.h>



main ()

{
* * * * *** *** ** num[3],i,max;
* *** * * * * * * * (i=0;i<3;i++)
* ** * * * ** * ** * * * *
** * * * ** * * ********* ** * * * *** **** * * * * * ** * *** * **
* ***** **** * * ** * * *
* * * ** * *** ** * * *
* ** * * ** * (i=1;i<3;i++)
* * ** * ** * **** * **
* ** ***** * * **** *** *** * *** *** ** * * (max < num[i])
* * *** * ***** **** * * **** ** * * *** * *** * * *** ** *** **
* *** ******* * * *** *
* ** *** * * **** * * ***** *** * *

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

#include <stdlib.h>



main ()

{
* * * * * *** ** num[3],i,max;
* * *** * *** * * (i=0;i<3;i++)
*** ****** * * * *** * ** * ** ****** * *
*** **** * * ** * ** ** * * ** **** * * *** * * **** *
* ** * * ** ****** * ** ** *** *
** ** * * * ** ******** ***
* * ***** *** * * * * (i=0;i<3;i++)
**** * *** * **** ** * * ***
*** * ******** * ** * * * * * ** * ** * * (max < num[i])
* ** ***** * ** * * ** * ** * * *** ** ** * ** * ** * **** ** * *
* * ***** * * * *
*** * **** *** *** * * * * * * **** ** **

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

#include <stdlib.h>



main ()

{
** * ****** **** ** num[3],i,max;
* * * ** ** * * (i=0;i<3;i++)
* *** *** *** ****** ** ** *
* * * * * ** **** ** ** * * *** ****** *** * * * *** * * *
*** *** *** * ** ** * * ** * *** * *
** * * ** ***** ** * *****
** * * * ** * ** (i=0;i<3;i++)
* * * * ** * * ***** *
** * ****** * * * * * ** ***** ***** ** ** * (max < num[i])
**** ** * *** ** * * ** ** **** ** * ***** * ** ** * * **
* ****** * ** * * * *
* * *** ****** * *** ** ** * ***** ** *

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

#include <stdlib.h>



main ()

{
* * ** * * * num[3],i=0;
*** * ** ** * * ** (i=1;i<=3;i++)
* * ** *** ** ** *** * ****
* * * *** ** * * ******* * ** * * * *** * * * ***** *** * * * * **
* *** * ** ** ** * ** * ** *** ** ** *
* ** ** * * ** max=num[1];
** * ** *** *** (i=2;i<=3;i++)
* ** * * * *** ** * * * * ** **
***** *** * * * * *** * ** * ** * * * ** (max < num[i])
* * *** *** * ** * * ** ** ** ** * ** * * * * *** *** * ***
*** ** * **** ********* * * * *
** ** * * ** ** *

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



int * *

{

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

{
*

}
** * * *

{
* *

}
* *** * * *
* 0;

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



int ** *

{

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

{
****

}
* * * **

{
* ***

}
* * *** ** **
*** * 0;

}
answered by (-124 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.68.65.204
©2016-2019

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
| 154 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
| 153 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
| 122 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,236 questions
85,527 answers
63,421 comments
2,702 users