1 like 0 dislike
6.3k views
請設計一程式,使用者會輸入三個正整數,請找出其中最大及最小的數然後輸出。

請利用函數的方式來完成這個作業
[Exercise] Essay (Open question) - asked in 作業 by (18k points)
ID: 16865 - Available when: Unlimited - Due to: Unlimited
| 6.3k views
0 4
Called for Help

48 Answers

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



#include<stdlib.h>



 



int main()



 



{


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


** * * * * ** *** * i,j,k,t;


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


* ** * * **** * * * x[3];


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


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


* * * * * **


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


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


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


** * * * ** * **


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


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


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


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


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



 


* * ** * **


* * * * *** * * * * ** * * %d",x[0],x[2]);



    


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


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



    



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



#include * *** ** * * **


* * **** ** *



int *** num1,int num2,int num3);



int * * num1,int num2,int num3);



int main()



{


* ** * * * * i,j,k;


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


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


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



}


** ****



int ** * num1,int num2,int num3)


*** ** *


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


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


** ** *** * * ** *** if ** * ***** * * ****** **


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


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


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


*



int ** num1,int num2,int num3)


* *** **


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


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


** ***** ***** *** *** if * *** * ** * ** * * **


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


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

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

#include * ** ** * *



void number(int a[100])

{

int ** ***

int b[100];


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


** * * ** ** *

 {
**** *** * * ** * * * *** *
* *********
* * * **** * ***** ** * // 大到小
** ** ** * *** ** *
********** ** **** *** * *** * ** *
** ** * ** *** *** *** ** ***
* * *** ** *** ** *** *** ** **
*** ** *** ** * ** *** *
* ** ** *

 }

}

int main()

{
* ****** a[100];
** *
* * ** *** **** * * * * **
* *** **** * * * *
* * * 0;

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

#include ** * ** * * ** *



int bigger(int numa, int numb, int numc)

{


* * *** * ******* * (numa>numb *** ** *** numa>numc)
** **** *** * * ** *** * *** * *** * ** * numa;
* ** **** * * ** ** * * ** * ********* **** ** ****** *
* * ** ** **** * ** ** * ** ** * ** * * * * * * * numb;
********* * * * ********
* * *** * ** * * ** * *** ** * * ********* ** numc;

}



int small(int snuma, int snumb, int snumc)

{
** ** ** ** * * * * ** * * **** * *** * ***** ** *
* * *** *** ** ** * * *** ** * * ** * ** ** * * * **** ** ** ** ** snuma;
** ** * * * * *** **** ** * * * * * * **** * ** * * * * ****
*** ** ** * * * * *** * * * *** ** *** * ** * *** snumb;
** * * * *** * * **** *** *
** **** *** * *** ** * ** * * * *** * ** snumc;

}



int main(void)

{


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


* *** ** *** * * * = bigger(a,b,c);
** * **** ** * ** *** ** ** * ** * big);


** *** *** **** * ** = small(a,b,c);
* * * * * *** * * *** * *** * * * **** sma);


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

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



int main()

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

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

#include <stdlib.h>



void qwer(int a,int b,int c)

{
* * * * * ** * ** max,min;
*** ** * * ***** * ** ******* * ** * **
* ** ** * * * *** ***** **** ** * * ****** *
**** *** **** ** ** * * * * ** ******* * ** * * * ** *
** ****** ** *** ******* * * * * *** *** *** *
*** * ** * * *** ** if(c>=a&&c>=b)
* ** *** * ** * *** * ** * ** * **** ***** * * *
** * ** * * ** * * ** * * ****** ***
* *** ** * *** *** * **** * ** * *** ** *
* * * ** ** **** ** if(b<=a&&b<=c)
* ** ** ***** * **** ** ** ** * *** *******
* ** * * ** * * * * * ** * ** * * * * **
***** **** ** *** *** ** * * * *
* ** ** * * *** * *** * * ** * %d\n",max,min);
* **** ** ***** * 0;

}



int main()



{

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

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



int M(int x , int y, int z)

{
*** *** ** ** * * ** ** ** ** * && x>z)
* * ** ** * **** * *** ****** ** * *** *** x;
* * * * * * * ** ****** && y>z)
* *** *** * *** *** * * **** * **** *** * y;
* * *** ** ** * ** ** ** * ** * * z>y)
* *** * ** ****** * ***** * ****** *** * * *** **** * * z;

}



int m(int x , int y, int z)

{
* ***** ** * * * ** * *** **** ** * x<z)
* * * ** **** * ** **** * * * * **** * x;
* * * * ** **** * ** ** * * * y<z)
** * * * * **** ** * * * * ** *** * ** * * **** ** y;
* *** *** * *** ** ** **** ** ** z<y)
* * * * * *** * * *** ** * * * ** * ** **** *** z;

}



void main()

{

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

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


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


** ** * *



int ***** *** int num2, int *

{

if ********* *** *** ****
*** num1;



else if *** ** *** ** *** * **


** * num2;



else if * ** *** **** * ** * * ** * *
* num3;

}

int * * ** ** ** * num3)

{

if * *** * *** * *** ** * ** *


* ** * num3;

if * ** * *** * * *** **** * * **
* ** num2;

else if ** * * * * * * *** ** * * *


*

}

int *

{

int * ***



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


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


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



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

int * ** ** int num2, int num3)
{
if * ** ** * ** ** ** * **** * * *
*** num1;

else if * ******* * * ** ** **
** * num2;
**** if * * * * * * * * *** * *
*** num3;
}
int **** * *** num3)
{
if ** * * *** * ** * *
* num3;
if ** * *** ** *** ** *** *
** num2;
else if *** *** * * *** ** *
* ** num1;
}
int * *
{
int *** **

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

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



int *** (int ** ** **

{
* ** * num2 ** *

* * ** * ** num3 **** ***
* ** **
* ** ** * **** num3 **** * *
*** ** num1;
** *** * * num1 **** ** *
** **
** **** ** ** num2 * ** **
* * ****
**** * * ** * num1 num2)
* * * *

}

int * * (int * ** *

{
*** num2 **** * **
* * * *
* * * ** **** * num3 * ****
* **
* * *** * ** *** num3 * *
*** **
* * * **** num1 ***
* **
*** * * * * num2 *** ***
* * **
*** ** ** num1 *** * * ** *
** *



}

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


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

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

Related questions

2 like 0 dislike
44 answers
[Exercise] Coding (C) - asked Nov 2, 2016 in 作業 by Shun-Po (18k points)
ID: 16861 - Available when: Unlimited - Due to: Unlimited
| 5.5k views
0 like 0 dislike
76 answers
[Exercise] Coding (C) - asked Oct 19, 2016 in 作業 by Shun-Po (18k points)
ID: 14120 - Available when: Unlimited - Due to: Unlimited
| 8.2k views
0 like 0 dislike
91 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (18k points)
ID: 13617 - Available when: Unlimited - Due to: Unlimited
| 9.7k views
0 like 0 dislike
201 answers
[Exercise] Coding (C) - asked Oct 5, 2016 in 作業 by Shun-Po (18k points)
ID: 12293 - Available when: Unlimited - Due to: Unlimited
| 18k views
0 like 0 dislike
99 answers
[Exercise] Essay (Open question) - asked Sep 21, 2016 in 作業 by Shun-Po (18k points)
ID: 11341 - Available when: Unlimited - Due to: Unlimited
| 10.4k views
12,783 questions
183,442 answers
172,219 comments
4,824 users