Toggle navigation
Courses
Questions
Tags
Users
AC 20161005 作業 1
0
like
0
dislike
5.4k
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
|
5.4k
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()
{
* ** * ** * ** * * ** * grade;
* * * * * *** **** * ** ** ** * * * * * &grade);
* * * * * **** * * * * * (grade >= 90 )
* *** * * * * * * **** * *** *** * * *** * * * ** ****** ** * * * * * *
* ** ** * * * ** ** * ** *** if(grade >= 80)
* * * * * * * *** * * ** * ** * * * * * * * * * ** * * * * * * **
* ** *** ** * * * * * if(grade >= 70)
* ***** ** * ** * * *** * ** * * * ** ** * * * * * ** * * * * * * *** *
* * * *** **** * * * if(grade >= 60)
* **** * * ** * * * * ** *** * * ** * *** * * **** * ***** * ** ** **
* * * * * * * *** * * * *
* **** ** * ** * ** * ** * * ** * *** ** * ** * *** ** ** ** *** *
* ** * ** **** * * *** * * ** 0 ;
}
answered
Oct 5, 2016
by
410523012
(
-158
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include <stdio.h>
#include ** * * * * *
int main()
{
** *** * * * ** ** * a=0 ;
* ** ** * ** * * * ** ** * **** * * * ** * * * **
** ** * * * * ** * * * ** ** * * * *
* * * * * * * * ** >= 90)
* * * ** * * ** ** * * * * * *** ** *
** * *** * * * * ** * * * if(a >= 80 )
* * * *** * * * * * * * * *** **
* ** * ***** ** * **** * * if(a >= 70)