Toggle navigation
Courses
Questions
Tags
Users
AD 20160929 作業 1
0
like
0
dislike
3k
views
請設計一個程式當使用者輸入一個分數(介於0-100間),程式會輸出相對應的等第
輸入範例1
100
輸出範例1
A
輸入範例2
59
輸出範例2
F
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11603 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3k
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
73
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
int x=0;
scanf("%d", &x);
if (x>=90)
* ** * * * *** * ** *** * * * * ** * *** * * ***
else
{
** ****** ** * * * * * ** * ** * * (x>=80)
** * * * ** * **** * * *** * *** * ** *** * * * * * * * ** * ***** ** * ** ** * * *
* * * ** * * * *** ** * * *** **** *** * * * * *** *
{
* ** * **** * ** * * * * * *** * ** * * * * ** * * ** *** * (x>=70)