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!** * ** ** * *
* * **** *** ** * * * **
** **
{
int a=0;
** * * * * * * **
if * * * *
* * ** ** * ****
* if ** ** * *
** ** ** *** *
* if * ** ***
* * ** * ** **
else if * * ** *
* * * * * **** * *
**
* ** ** * *
* 0;
}
answered
Oct 27, 2016
by
加藤
(
54
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
** * * * * * ** * * ** *** a;
* * * ** * * * * **** * * ** ** * * ***** * * * *** ** *
if * * * * * * * * * * *
** ** * * * * * * * * **** ** * * * *** * * * * * * * *
* * * * * ** * * ** * * ** * if (a>=80&&a<=89)
** * * * * * * * **** ** ** * * * * * * * ****** ** **** * * * * *
** * * ** * * ** * ** * ** ** ** if ** * * * * *** * ** **
* ** * ** * * * * *** * * ** * * * *** * *** * ** ** * *** **** *
* * * * * **** ** * if * * *** * ** ** **
**** * * ***** * *** * * * ** * * ** * ** ** * * * * ** * *** ** **
** * * *** * *** *** * * if (a>=0&&a<=59)
* * ** * * ****** * ** ***** ** * * * * * * * **** ** * * * *