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

 

範例輸入:

-10 5 99

範例輸出:

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

39 Answers

0 like 0 dislike
Hidden content!
#include * ** * *

int main()

{
* * *** ** *** i, * ** * *


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


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


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

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



int main()

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


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


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


* * *** * * * * ******* ** ** **** * * num[0]);


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

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



int main()

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


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

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

#include <stdlib.h>



int main()



{

   int i1,i2,i3,output;


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


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


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


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


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

    }



return 0;

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



int main()

{
** ** ** ** * * ** ** a, b, c, n;
* * ****** **** * ** *** *** ** **** * * *  &a, &b,&c);


*** * * ** ***** *** ** < b)
***** ** * * * * *** ** ** ** **** * * *** = b;
* * ** ** * * * *** * ** *
* * * ** *** * *** * * * * *** **** * * ** = a;
** ** * ***** ** * < c)
****** ***** ****** *** ** * ** * * ** * *** * *** * * c);
***** * ** * ** **
* ** ** * * * *** ** * ** * * * * * * * * * *** ** * n);

return 0;

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

#include <stdlib.h>
****** * * * * * * ** *** ** main()
* *** * * *** **** *
* * *** * * * * *** * a,b,c;
** * ** * * **** * *** ***** * %d * * * **** *** ***** *
** * ** * * * ****** *** * * && b>c)
** ** * * ** *** * ***
* * * ** * *** *** ** * *** * **** ***
* ** ****** ** * **
**** ****** *** ** if(a>b && a>c)
* * *** * *** ** ** ** * **
* * ** ********* ** ** ** ****** * * **
*** *** *** * *** **
* *** ******* * ** * if(c>b && c>a)
* * *** * ** * * * * **
**** * * ** **** * * **** * * ** * *
** *** *** ** * * *
** * **** * * ** * * 0;
* * * ***** * *** * **
answered by (-216 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main()

{

    int num1=0 , num2=0, num3=0;
* *** * ***** *** * * ** ** ** * ***** * *
** ** *** ***** ** ****** ***** * ** ****** **** * **** * ******
* * ** **** * * ** ** * * * **** ** * ********** * * * * *** **

    if (num1>num2)

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

    }

    else

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

    }

    return 0;

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



int main() {
* * * * * * ****** ** a=0,b=0,c=0;
** * *** * * * * ** * * ** ** * * ** ****
*** ** ** * * * ** * *** * **** *** * **
** * ** * * **** * * * *** * * * * *

    
*** ** * * ** **** ** * * ** *
* * ** * * * ***** * * * * * * ******* * *** *** ** ** ***
** *** * * * * *** *
* * * * * * * ** ** if(b>c){
*** * * ** ** ** ** ** ********** * **** *** * * ** ** *

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

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

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

#include * * ** * ** *



int main (void)

{
*** **** ***** *** ** * a,b,c;
* * * * * * * ** * * ** * %d * *** * ** * ***** *** ** **


* **** * *** * * * * * (a > b ***** a > c)
**** ******* * * * * **** * * *** ** * *
*** * ** *** *** *** * if (b>a **** ** *** * b>c)
* ***** *** * *** * ** * *** *** ******
* * ****** ** * if (c>a * ** ** c>b)
* ** ** * * * * *** * ** * * *** * * * **
** * ***** ** * * 0;



}
answered by (-157 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.131.139
©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
| 3.4k 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
| 4.3k 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
| 5.2k 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