Toggle navigation
Courses
Questions
Tags
Users
AC 20161005 作業 1
0
like
0
dislike
7.6k
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
|
7.6k
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()
{
int i;
* * * ** **** ** *** * *** ** *** * ** ****
* ** ** * * * * * * ** * ******
if(i>=90)
* ** * ***** ****** **** * * * ** * ** ** ** ** * * *
else
{
*** * * * ** ***** *** ** * * * * ** ** *
* * * **** ** * * *** * ** * * * * ** * * * ** * *** * * **** * ******* ** * *
**** * * ***** * ** ** ** ** * * * *** * **
{
***** ** * ***** *** * * * * **** * **** *** * * ** ** ***** ** *
**** * * *** ***** ** **** ****** **** * * * *** * * * ** * **** *** ** * * * ** * * ** ** *** ** ****
** * * * *** * * * * * **** * * ** ** * ** **** * **** ** * ****** *
* * * * * *** * * * *** ** * *** * ** * ******* ** *** * ** * ** *****
**** ** ***** *** * * * ** * ** * ** * ** ** ** * **** * ** ** ** ****
**** * * *** ***** * ** * *** **** * * *** * * ** * * * * ******* * *** * * * * * * ** ***** * ** **** * *
* ** * * * * * * * ** ****** * *** *** * * *** **** *** * ** *** * * **** * ** * **
* ** * * ** ** * **** **** * * *** * * * ** **** ** ***** * *** * * * * ** ******* **** ** *** ** * ** * **** * **** * * *
** * *** ** * * * *** * * **** * * ** *** * * * *** ** * **** *
** ** * *** * * *** * ** * * * * * * **
}
return 0;
}
answered
Oct 5, 2016
by
410211222
(
-186
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()
{
int a = 0;
printf("請輸入成績");
scanf("%d",&a);
if(a>=90)
* * ** ** ** ** ** ** * * **
else
* * * **** * * ** * * * * * * * * **** **
***** ** * **** ***** * * ***** ******* ** * * * * ***
* *** * * * * ** * ** ***** * ** ** ** *** **** * *
* ** *** * * * * ** * * * ***** * ** * **** ** ********** ** * * * **** **
* * * * ** ** * * * * * ** * ** * *** * * * * * * **** * **** * * * * * *
*** * * ****** * *** *** ** ****** ** * * * ** *** ** * * * ** * ** *** ** * ** *
**** **** *** * *** *** *** * ** * * * * * **** * *** *** *** * *** ********* * * **** ** * *
* * * * * ** ** * ** * ** * * *** * ** * ** **** * * * *** ***** ** * ** * ***** * * * ** * * *** ***** ***
*** ** ** *** * * *** * * ** ** * * ******* * *** * * **** ** **
* * *** ** * * * * * * * * * * * ** * **** ** * * * ** * *** ** ***** * * * ** * **
return 0
}
answered
Oct 5, 2016
by
SRFX
(
-140
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
main()
{
* ***** * * * *** * * number=0;
******** ** * * * * **** ****** * * * &number);
* * * * ** * ** ** **
* ** ** *** * ** ** *** (number>=90)
* ** ** **** *** * * * ** *
* * ** * *** *** * * * *
** * ** * * ** ** if (number>=80)
* *** ****** * *** * * ** * * ** **
** * **** *** ** **
*** ** * * * *** * ** * if (number>=70)
** ** * ** ** * * ** * ** ** **** ** * **
* **** ** *** * * if (number>=60)
*** **** ****** * *** * * ** * **** *
* ***** ** * ** * * * * *
*** * * ***** * * * * *
* * * ** *** *** ** **** *** * ** *** **** ***
* *** * ** *** * * **
* * * ** ** ***** * * ** * * * ** *
}
main()
{
** ** ** **** ** * number=0;
*** ** * * * **** **** *** ** * * * &number);
* *** * *** *
* ** **** ***** ** ** (number>=90)
** * **** * * **** ** *** ** *
* ** *** * *** * * * ***
** * ** **** * ** * ** * if (number>=80)
** * ** * ** * ** * **** **
** ** * * * * * **
* * * * ****** * * * ** ** if (number>=70)
*** * ** * * ******* * ** ****
** * ** ****** * *
** ** * * * * * ** * * if (number>=60)
* * ** * ** * ** * ** * ** * * ****
* * * ** * ** * ** *
* * * * * * ** * * * *** * ** *
* * * *** ** ** **
* *** ** ** *** ** ** * * * * * *
}
answered
Oct 5, 2016
by
Doloa
(
-122
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
main()
{
int score=0;
** * *** * * * * * ** * * * ***** **
** * *** * ** ** * ** * * * * ** ** * *** *
* * * **** ** * * * * >= 90)
***** ** * ** ************ ** *** ** **** * **** *** * * **
* *** * * * *** ** * if(
* *** ******* * ******* ***** * * * ** ** >= 80)
** ** ** ** * ** * *** * * **** ** ** * * * * **
else if(
********* * * * ** * * * * * * * ** >=70)
* * * *** ** * **** ** * * *** * * * * * * * **
*** * ** **** * ** * **** if(
**** * ******** ***** ******* **** * * *** * >= 60)
* ** * * * * ** **** * * ** * ** * * ** * **** * **
* ** * * * * * **** * * ** ** * if(
****** * * ** * ****** *** * * **** * * < 60)
* * ** * * * * **** *** ** ** * **** ** **
}
answered
Oct 5, 2016
by
Jim870729
(
-102
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * * * ** *
main()
{
float a;
** * ***** * * * *** *** * ** * *
*** *** * *** **** ****
if **** ** ***** * * * * *** **
else if ** * * * * * * * *
else if * * *** * * * * **
else if * *** *** **** **** *
else *** ** ** **
}
answered
Oct 5, 2016
by
410523022
(
-276
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
*** * * *** *****
main()
{
**** * **** *** ** grade;
* **** ** * * * ** * * **** * * **** * * * ** **
* * * ********* *** * ***** * * &grade);
* ****** * * ***** ** (grade >=90)
** * ** * * ** * * ** * **** * * *** * * * *
** **** ** * *** ** * * if (grade >=80)
* ** * **** ** * * * *** * *** * *** **** *
* * ** * * ********** *** ** ****** *** * ** ** (grade >=70)
*** *** * * * *** ** ** * * ** * * * * * * *
* *** * ****** * * ** * **** * if (grade >=60)
**** *** ** ** ****** * *** * * ***** * *** *
* *** **** * **
** * **** * * *** * * * * * * *
}
answered
Oct 5, 2016
by
410425044
(
-114
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
int main()
{
*** * * *** *** ** * *** * grade;
* ** ** ** ** ** **** *** * * *** enter your grade");
***** * **** * * **** * * * * * * ** * * *
* * ****** *** **** ** **** * *** * *
* ** ****** * * * * * * * **** *** *** ***** * ** ******** ** * * ** *
** * * * * ** *** ** *** if(grade>=80)
** * ** * * *** **** ** *** * * * * * * ** ** * *
else if(grade>=70)
** *** ** ** *** * * ** *** * * * * *** *** * **** ** **
* * * * ** ** * ** if(grade>=60)
* * ** *** * **** * * * * *** * * ** ** * ** ** * ****
* * ** * *** *** ** ***
** * *** * * * *** ** * *** **** ***** * *** * * ***** * ** **
}
answered
Oct 5, 2016
by
410425045
(
-90
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>
main()
{
int a = 0;
printf("請輸入成績");
scanf("%d",&a);
if(a>=90)
* ***** * * *** ** * ***** ** *** **
else
** *** * ** ** **** *** * ** * * ****
****** * * ** *** ** * * ** ** *** **** * * * ***** * ** * *** * ** **
* * *** ** *** **** ** * * ** ** * * *** ** *
** ** * ** * * *** ** * ** * **** **** ** * ** * ** **** ** * * * * ** ** ** *
* * ** ***** * ** * ****** * * * **** *** * * ****** ** * * * ***
* * * ** * *** * ** * * ** * *** * * *** * * **** * ** * ** * * * **
** ***** ** ** * * * * ***** * ***** * * * * * **** * * * * * ** ***** * * ** ** *** ** * *** ***
* ** *** * ** * * *** ***** * * * ***** * ** * * ***** ** * ** * * * ** ** ** ** ** * ** *** * ** *
* ** * * ** **** * * ** ** * ** * * * * ****** * * * ****** * * *
*** * * * ** ** *** * ***** ** * * ***** *** * **** * ** * * * ** *** **** ******** **** *
}
answered
Oct 5, 2016
by
SRFX
(
-140
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
main()
{
** ****** **** * * * ** * number=0;
***** * * * * * * * ** * * * *** * ** &number);
* * * * * * **** *** *
*** * * * * ** * ** *** (number>=90)
* * ** ** ** * * * *** *** **
* *** *** * * ** ***
** ** **** **** *** * if (number>=80)
** ** *** *** * * * * * ****** * * *** * *
* **** * ** **** * ** *
** * * * * * *** * * if (number>=70)
* * * ** * **** * ** ** * * ****** **
* * * * ** * ***
* * **** ***** * if (number>=60)
****** *** * * * * * ** * * *
* * ** * *** **
* * * * * * * * ***
** * * * * * *** * *** * * * ** * * *
* *** * *** ** *
** * *** * ****** ** * ** ** ** **
}
answered
Oct 5, 2016
by
Doloa
(
-122
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include *** ** * * *
#include ** ** *** *
main()
{
* * **** * ** ** score;
* ****** ** ****** ** * * * * *******
* * ** * ** ** * * * *** * &score);
**** * **** ** * * *** (score>=90)
** * *** *** ** * * * * * *
****** * *** *** * * **** *
*** * ** ** * *** * * ** * *****
**** ** *** ** * if(score>=70)
* ** * * * * *** ** ** * * *
* **** **** **** if(score>=60)
** ** **** * * * ** *** *
*** * *** * ** * * if(score<60)
* **** * * ** * * * * ** * * **
}
answered
Oct 5, 2016
by
wilson0121
(
-74
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
...
10
11
12
13
14
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:108.162.216.220
©2016-2025
Related questions
0
like
0
dislike
152
answers
AC 20161005 作業 3
[Exercise]
Coding (C)
-
asked
Oct 5, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 12295 -
Available when:
Unlimited
-
Due to:
Unlimited
|
8.7k
views
0
like
0
dislike
201
answers
AC 20161005 作業 2
[Exercise]
Coding (C)
-
asked
Oct 5, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 12293 -
Available when:
Unlimited
-
Due to:
Unlimited
|
11.3k
views
2
like
0
dislike
44
answers
AC 20161102 作業1
[Exercise]
Coding (C)
-
asked
Nov 2, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16861 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3.5k
views
1
like
0
dislike
129
answers
AC 20161019 作業 1
[Exercise]
Coding (C)
-
asked
Oct 19, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14119 -
Available when:
Unlimited
-
Due to:
Unlimited
|
7.9k
views
0
like
0
dislike
117
answers
AC 20161013 作業 1
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13581 -
Available when:
Unlimited
-
Due to:
Unlimited
|
6.7k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users