Toggle navigation
Courses
Questions
Tags
Users
AC 20161005 作業 1
0
like
0
dislike
14.1k
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
|
14.1k
views
comment
Please
log in
or
register
to add a comment.
131
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
* * * * * * *** * ** ** * * i;
* ** * ** *** * * *** * * * * ** * ** * * ** ** ** *** * * *
** * ** *** ** * * * * * * ** * ** * ** ** *
*** ** * * ** ***** **** * * * ** ** * * ** *
if (i >= 90)
* * * ** * * * * ** * * ** ** **** * * * ** * * * * * * ** * *
**** ** * ***** * ** * *** if (i >= 80)
*** ** * ***** ** *** * * * * * ** ** ** * * * ** * * * **
* * * * * *** * * ** * * if (i >= 70)
* ** * ** ** * * * * ** * * * * * * * *** ** * * * *
* * * * ** * * *** * * if (i >= 60)
* * ** * * * * * **** * * * ** ** * * * * * * * * *** ** **
* ***** * * * ** * * ** * * ** * if (i >= 0)
* ** * * * ** * * * ** * **** * * ** * * * * * ** * *
* ** * * ** * * ** * * **