Toggle navigation
Courses
Questions
Tags
Users
AD 20161103 作業2
0
like
0
dislike
813
views
請設計一程式,使用者會輸入三個正整數,請找出其中最大及最小的數然後輸出。
請利用函數的方式來完成這個作業
[Exercise]
Essay (Open question)
-
asked
Nov 3, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16958 -
Available when:
Unlimited
-
Due to:
Unlimited
|
813
views
comment
Please
log in
or
register
to add a comment.
31
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include ** * * *
void Biggest(int n1 , int n2 , int n3)
{
** *** * * ** ** * * *** *** && n1>=n3)
* *** ** *** * ** ** * * ** * * *** ** * ** *** * ** * ** ** * * * * *
* * * ** * * * ** if(n2>=n3)
* ** * * * * * ** * * * * ***** * * * * * * *** * * ** * * * * * ** * **** ** * *
* * ** * * ** ** * * * * * *
* * ** * ** * ** *** * ** * * * * * ** ** *** * * * * * * ** * * *
}
void Smallest(int n1 , int n2 , int n3)
{
** * *** * * * *** * * * * ** * * * **** && n1<=n3)
* * * * ** *** * ** * ** ** * * * ** ** * * * ** ** ** **
* * * * * * ** * ** ** * ** * * if(n2<=n3)
* ** ** * * * ** * * * * * ** * * * * ** * * ** ** * *** * *