Toggle navigation
Courses
Questions
Tags
Users
AC 20161005 作業 1
0
like
0
dislike
12.8k
views
請設計一個程式當使用者輸入一個分數(介於0-100間),程式會輸出相對應的等第
90-100 => A
80-89 => B
70-79 => C
60-69 => D
0-59 => F
輸入範例1
100
輸出範例1
A
輸入範例2
59
輸出範例2
F
[Exercise]
Coding (C)
-
asked
Oct 5, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 12291 -
Available when:
Unlimited
-
Due to:
Unlimited
1
flag
edited
Oct 5, 2016
by
Shun-Po
|
12.8k
views
comment
Please
log in
or
register
to add a comment.
131
Answers
0
like
0
dislike
Hidden content!* * * ** **
int main( )
{
** * ** **** g;
* * * ** *** ** ** *** * * ** * *** * *
* * * ** * ** ** **** ** * ** * ** ** *
if ( g >= 90)
* ** * * ** * * *** *** * * * * * * ** ***
else
** * ** ** ** * ** * ( g >= 80 )
* * ** * * ** * * * * * ** ** * ** ***** ** * * *
else
** * ** * * *** ** * **** ( g >= 70)