Toggle navigation
Courses
Questions
Tags
Users
AC 20161005 作業 1
0
like
0
dislike
17.9k
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
|
17.9k
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)
*** * ** ** *** ** * * * ** * **** * * * * * * * * * **** *
* * * * ** ** * * ** **
*** * * * ** * * * * ****** * * * *** * * * *** * ** * ** * ** ** *** * *
return 0;
}
answered
Oct 5, 2016
by
410523018
(
164
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!* * * ** * * *
int main()
{
int score;
* * * * * * ** ** * * *
if{
* ** * ** ** ** ** **** *** **** * * *** * * * **
* * * * ** * ** * *** ** **
** ** ** * *
* * * * *** * * * * * * * * * *
* * * * * * * * * **
else{
**** * * * *** ** * * ** * *
* * * * * *** ** * * * * * *
else{