1 喜歡 0 不喜歡
7.7k 瀏覽
請設計一程式,使用者會輸入三個正整數,請找出其中最大及最小的數然後輸出。

請利用函數的方式來完成這個作業
[練習] 開放式問答 - 最新提問 分類:作業 | 用戶: (18k 分)
ID: 16865 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 7.7k 瀏覽
0 4
Called for Help

48 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>



#include<stdlib.h>



 



int main()



 



{


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



 


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


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



    


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


** * * * ** * * 0;



    



}
最新回答 用戶: (102 分)
0 喜歡 0 不喜歡
內容已隱藏
#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;

}
最新回答 用戶: (-42 分)
0 喜歡 0 不喜歡
內容已隱藏
#include ** ** ** *

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



void number(int a[100])

{

int *

int b[100];


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


* *** * *

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

 }

}

int main()

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

}
最新回答 用戶: (-34 分)
修改於 用戶:
0 喜歡 0 不喜歡
內容已隱藏
#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;

}
最新回答 用戶: (-64 分)
0 喜歡 0 不喜歡
內容已隱藏
* * *
* *** * * ***** * *



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;

}
最新回答 用戶: (-100 分)
0 喜歡 0 不喜歡
內容已隱藏
#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;

}
最新回答 用戶: (-85 分)
0 喜歡 0 不喜歡
內容已隱藏
#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;
* *** *** * ** * * ****** ** * * *
* * *** * * ** * * *** * **
* *** ****** * * ** ** ** * *

}
最新回答 用戶: (-216 分)
0 喜歡 0 不喜歡
內容已隱藏
* * ** * ** *** *


* * ** *** * **


******* ** **



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

{

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



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


** ** num2;



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

}

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

{

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


* num3;

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

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


* * *

}

int ** *

{

int ** * *



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


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


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



}
最新回答 用戶: (-383 分)
0 喜歡 0 不喜歡
內容已隱藏
** ** *
*** *
* **

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

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

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

}
最新回答 用戶: (-383 分)
0 喜歡 0 不喜歡
內容已隱藏
* * ** * ** **
** ** * ** *
* * *** *** * *



int (int ** * * * *

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

}

int *** (int * * ***

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



}

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


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

}
最新回答 用戶: (-120 分)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.126.217
©2016-2026

相關問題

2 喜歡 0 不喜歡
44 回答
[練習] Coding (C) - 最新提問 11月 2, 2016 分類:作業 | 用戶: Shun-Po (18k 分)
ID: 16861 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 6.8k 瀏覽
0 喜歡 0 不喜歡
76 回答
[練習] Coding (C) - 最新提問 10月 19, 2016 分類:作業 | 用戶: Shun-Po (18k 分)
ID: 14120 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 10k 瀏覽
0 喜歡 0 不喜歡
91 回答
[練習] Coding (C) - 最新提問 10月 13, 2016 分類:作業 | 用戶: Shun-Po (18k 分)
ID: 13617 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 11.4k 瀏覽
0 喜歡 0 不喜歡
201 回答
[練習] Coding (C) - 最新提問 10月 5, 2016 分類:作業 | 用戶: Shun-Po (18k 分)
ID: 12293 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 22.2k 瀏覽
0 喜歡 0 不喜歡
99 回答
[練習] 開放式問答 - 最新提問 9月 21, 2016 分類:作業 | 用戶: Shun-Po (18k 分)
ID: 11341 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 12.4k 瀏覽
12,783 問題
183,442 回答
172,219 留言
4,824 用戶