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

 

範例輸入:

-10 5 99

範例輸出:

99
[Normal] Coding (C) - asked in 2016-1 程式設計(一)AD by (18k points)
ID: 13021 - Available when: Unlimited - Due to: Unlimited
| 3k views

54 Answers

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

#include <stdlib.h>



int main()

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

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

    



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

#include<stdio.h>



int main()

{
*** * ** * ** * *
**** * * * **** ** * a , b, c;
* * * ** * ** *
* *** ** * * x ,y ,z;
* * *** * **** * ** * * * * * ** *

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




** * * ** *** *** *** ** * && a>c)
*** **** * ***** * * ** *** ** * * * *** * * * * * *
* ********** ** * **** *** ** * * * *** **** * *** * ***** * , a);
* ** * *** * * ****
*** * ** ***** **
*** * **** * ******
* * * *** * ** * ** * * * ** * && b>a)
* * **** * * * ** ** ** * * *** * * *** ** ** ** * *
* *** ** * ** ** * ** * ** * * ** * * **** * * ** ** * * ***** , b);
**** ** ******* *** *** **
** *** ** *** * ** * *
* ** * * *** ** * ** * * * *
* ** ***** * * * * * * **** && c>b)
* * ** * * * * *** * * * * * ** * * * ** * *
** *** ** * * * ** * ** ** *** *** * * ** * * , c);
* ** *** ** **
* ** ** * * * *** *




* ***** ** *** * *** *** * && a==c)
* ** **** * * * ** * ** *** ** *




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

    

    

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

#include <stdlib.h>



int main()

{
* *** * ** * *** x,y,z;
* ** *** * * * *** k;
* ** * ** ** * ** * ** * ** ** * * ** * * * * ***** *
* *** ** *** ** **

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

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


* * ** * * ** 0;

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

#include <stdlib.h>



int main()

{
** *** * * * * x,y,z;

   int k;
*** ***** *** ** * * * ******** ** ** **** ** ** * * *** *
* * * * * * ** *** **** *
* **** * *** * * * * * * * *****
** * * **** * * ******** ** * ** ** * **
**** * * * * ** * * *** * * *
*** ** * * *** ***
** ** **** ** ** *** ** *
*** ** ** ****** *** ***** *** **
*** ** ** * * * *** ** *** * * ***
* * * * * * ** *** ** *


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

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

#include <stdlib.h>



int main()

{

   int x,y,z;

   int k;
* *** ** * * ** * *** *** ** * *** *** ** ******* *** ** **
* * ** * * *** * ** ** * * *
* * ** * * * ** ** * * ** ** * **
* * * * * *** ** ** * *
* * *** * * * * ******* *** *
** * * * * ***
** * **** ******* * * ** * * **
* **** *** * * * * * **** **
* * *** * * *** ** *** ***
* **** *** *** *** * *
** ** ** *** * **** *** **** **
* * ****** ** * ** *** **** * **** **
* * * * *** * * *** * * ***
* *** ** * * * * *** **** * * ** *


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

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

#include <stdlib.h>

int main(void) {

    int a[3],sort[3],i,j,big=0;
* ***** * * * ****** ** * * * ****** *

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

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


**** * * * *** * * ***** ** EXIT_SUCCESS;

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

#include **** *** *



int main()

{
* * * ** * ****** * * * num1, num2, num3 ,num;
* ** *** ** ** * * ** *** * *** &num1);
* * ******* * ** ** ***** *** * * * &num2);
***** * *** * *** *** * ** * *** * * * * ** ** *
** * ** ** * = num1;
*** * ** * ** ** ** * (num < num2)
* ***** ****** * ** ** ** ** ** * * = num2;
** * *** * ** * * ** * ** (num < num3)
* ** ** * * ***** *** * ** * * *** ** ** = num3;
* * * ** ** * * * ** ** ** * * * *** num);


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

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

#include <stdlib.h>



int main()

{
** *** *** *** * i, j, c;
* * *** * ** * * num[3];
**** * ** * ***** = 0;i <= 2;i ++)
* **** * * * ** ** *** * *** ** **** * **** &num[i]);
** ** ** ***** * * = 0;i <= 2;i ++)
** * * *** ** *** * **** ** ** * ** = i+1;j <= 2;j++)
* ** ***** **** *** * ** *** * ** ** * ***** ***** * * * < num[j])
* * *** **** * * *** ******* * * * * *** ** ****** * * * **** ** *
* ** * *** ** *** * *** *** * * * * * * ****** * *** * *** ** * * * **** * * = num[i];
* *** * ****** * * ** *** **** * **** ** * * * **** ***** ** ** * * * *** * = num[j];
***** ****** * * ** *** ** * ** * ** * * ** * ** * * * * * * **** * * * *** *** = c;
**** * * ******* * * * * * ** * * ** * *** * * ** ** * **** ***


* ** * * ** *** * ** * * * * **** * * *** ** ", num[0]);


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

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

int main()

{

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

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



return 0;



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

#include <stdlib.h>



int main()

{
** * * ** ** * **** a[3] = {0} , i ;
**** ** * * * ** * *
** ** * ** * * * **
* * ******** ** * * * * i = 0 ; i < 3 ; i++ )
* ** *** ** ** * ** *** **** * ***** * ***** * * ** ** ***** ** ** ** ;
** * * * * * * ****
* * * * * * * * * * a[0] < a[1] )
* * * *** ***** ********** ***** * * **** = a[1] ;
*** * * * ** *** * * a[0] < a[2] )
**** **** ** ** * ** * * *** * ** * * * * * = a[2] ;
* * *** * * *** *
* * * ** ** * **** ** ** * **** **
* *** * ** *** *
** ** ** * ** * * * ***** * * ** **
** * * ** * * ** ** * 0;

}
answered by (-162 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.59.74
©2016-2025

Related questions

0 like 0 dislike
21 answers
[Normal] Coding (C) - asked Oct 13, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 13421 - Available when: Unlimited - Due to: Unlimited
| 1.3k views
0 like 0 dislike
23 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 13024 - Available when: Unlimited - Due to: Unlimited
| 1.6k views
0 like 0 dislike
21 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 13022 - Available when: Unlimited - Due to: Unlimited
| 1.6k views
0 like 0 dislike
0 answers
[Resource] asked Dec 31, 2016 in 2016-1 程式設計(一)AD by laich (937 points)
ID: 20299 - Available when: Unlimited - Due to: Unlimited
| 16 views
0 like 0 dislike
0 answers
[Resource] asked Dec 31, 2016 in 2016-1 程式設計(一)AD by laich (937 points)
ID: 20297 - Available when: Unlimited - Due to: Unlimited
| 17 views
12,783 questions
183,443 answers
172,219 comments
4,824 users