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

 

範例輸入:

-10 5 99

範例輸出:

99
[Normal] Coding (C) - asked in 2016-1 程式設計(一)AC by (18k points)
ID: 13020 - Available when: Unlimited - Due to: Unlimited
| 3.2k 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)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:108.162.216.80
©2016-2025

Related questions

0 like 0 dislike
35 answers
[Normal] Coding (C) - asked Oct 13, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13422 - Available when: Unlimited - Due to: Unlimited
| 2.7k views
0 like 0 dislike
43 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13025 - Available when: Unlimited - Due to: Unlimited
| 3.2k views
0 like 0 dislike
49 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13023 - Available when: Unlimited - Due to: Unlimited
| 3.5k views
0 like 0 dislike
0 answers
[Resource] asked Dec 31, 2016 in 2016-1 程式設計(一)AC by laich (937 points)
ID: 20298 - Available when: Unlimited - Due to: Unlimited
| 38 views
12,783 questions
183,442 answers
172,219 comments
4,824 users