Toggle navigation
Courses
Questions
Tags
Users
AD 20160929 作業 1
0
like
0
dislike
5.1k
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
|
5.1k
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 ()
{
*** * ** * **** * ** * * ** * * x;
** * ** ** * ** * * ** ** * number:");
* * **** * * * *** * * * ***** * &x);
* ** * * **** * *** * * **** * **** * ** (x<0)
*** * * * *** * ******* *
**** ** ****** * **** **** ***** *** * *** * input again");
** ***** * ********* ** **
* **** * * *** *** ** * * ** * * **** * ** if (x>100)
* * * ***** * *** ** * * ***** **
** * ** * *** * * * * * * * * * * ** * * **** * * input again");
* *** * * * *** **
* *** * *** * * ** ** * if (x>=90)
* * * * * ***** * *** * *** **
* * * * **** ****** **** * ** * * *** *** ** ******* * *
** ***** *** ** *** ** *
** ****** ** * *** * ** ** ** * ** *** * if (x<60)
** *** * * * * ** ****
* * * *** ** * ** ** * * * * ***** ******* *** **** ** * * * *
*** ***** ** * ** ** ** * * *
******** * * ** * ** * ** **** if (x<70)
** * * * ** ** * **
* * * **** ******* * * * * * ** ** **** * * * * *** * * *****
********* *** * *** *
** ** * * *** * ****** * if (x<80)
* * ****** * * ** ** *
* ** * ** * * *** * * ** * * ***** * ***** *** *** *
}
* *** * * *** **** * * *** **** ** if (x<90)
{
**** *** ** * * * ** * *** ** **** *** * * ***** ** * **
***** **** * * ** * * * * * ***
return 0;
}
answered
Sep 29, 2016
by
ared178540
(
-94
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()
{
* * ** ** * ** * num , score;
*** ** ** ** * * * * ** ** ** **** ** ** * **
***** *** ** * * * * * * = score / 10;
** *** * ** * * * * ** *** *
{
** *** *** ******** ****** 10:
*** ** * * ** * * *** 9:
** **** * ** * * * * ** * * *
* * * ** *** **** * ** ***
**** * ** ** * * **** *** 8:
* * * * * ** ** *** * ** ** *** **
** *** ** ** *******
* * ** *** ** * * 7:
**** * * *** * * ** * *** ***** **** ***
* * **** * ***** ** *
***** * ** ***** * ** * *** ** 6:
* * ********* * * ** ** * * * ***
** *** ** ** *********
* * *** ** **** * * *** ***
** ** *** * ** ** * * ** ****** **
* * *** **** ** ***
}
answered
Sep 29, 2016
by
410223039
(
-146
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()
{
* **** * * ** * * * * num , score;
** *** * ***** ** * * ** * * * *** * *
* * * * * ** *** * = score / 10;
* * *** ** ** ** *
{
* * * ** * *** *** * ** 10:
* ** ***** *** * 9:
* * * * ** ** * * ****** * ***
* * *** ** *** ** *** * **
** *** *** * * * ** 8:
** * **** * ***** * * *** * ****** * ** **
** * ***** ** * *** *
*** * ** ** * ** ** * 7:
*** **** ** ******** ** * **** * ** ** *
** ** ** **** * *** * *
* * ** *** ** ** * 6:
* ******* * * * ** * ** * * ** * *
* ******* * *** * *
* ** * ** * * * * * * **** *** **
* ** ** ** ** *
}
answered
Sep 29, 2016
by
410223039
(
-146
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 score, num;
** ******* * * * ** *** * **** *** *** ** *** * ** &score);
num = score / 10 ;
** **** * ***** * ** ** * ** * (num)
{
* * *** * * **** * *** * * ** * * * * ** * * * ******* 10:
** * * ** ** ** * **** * * * ** * *** *** * * **** 9:
* ** * * * ** * *** * ****** * ** ** *** ** **** ** ** ** **** ** * **** * * *** ********* ** *** * *** * * * * * *
* ** ** ** * ** * *** *** **** ** ** ** * ** * ** ** **** * *** * *** * *** ** * * *
* * ***** *** * *** *** ** **** * * ** ** ** * *** *** 8:
* ** ***** ***** * * ** *** ** ** * ***** **** ***** ** ** *** ****** * * * * *** * * ** * ** *** *
* ***** * ***** * * ** ****** * * * * * * ** * *** * * *** * *** * * * * ** * * * ***** * *** * * **** *** * ** * ****** * * * *** ** * ** * * * **** * * *** *
* ** * * ** * ** * ** ** * * * ******* * *** **** * 7:
* * * ** * * **** *** * * * * ** ** * ***** ** ** **** *** *** ** ** *** * * * * ** ** * **** * ** ** *
** * ** * * ** *********** * **** ** * ****** ** *** ***** * * * *** **** * ** *** ** * * *** *
** * ** *** * * ** * * * * * * * ** * * ** ***** * * 6:
*** * * ******* * * * * ** * ** * * * ******* **** * * *** * ** * ** * *** * ** ***
* **** ** ****** * ******* ***** ** * * * ** ** ** * ** * * ** * **** * * ** ** **** *
* * ** ** * * *** ** ** **** ** * * * * ** *** ** *** *** * :
* ** *** ** * **** ** * ***** * **** ** ** ** * * * *** ** * * ** * * * * *** * *** * ** ** * * * *** ** ***** ** * * * * ** **** * * * **** * ** * * ** * * * * *** * * * **** *** ** *** *** ***** *
}
****** * * * ** * * * * * * * * ** ** 0 ;
}
answered
Sep 29, 2016
by
410223055
(
-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 score, num;
* * ****** ** ***** ** *** * ***** * &score);
num = score / 10;
** *** * *** * ***** * (num)
{
** * ** ** *** * **** ** * ** ** ** * ***** 10:
* * * * * * ** * ***** ** ** * ** 9:
* * *** ** ** * * * ** * ** **** * ** * ****** * * ******* ** ****** ** * ** * * ****
* * ** * * ** * * *** * * ** ** * **** ** ******* ****
* ********* * * * ** *** * ** * ** * ** 8:
** *** * *** ** * * ***** * * ** * * ** * ** * * *** ***** * * ** * ** *
* ***** * * * ** *** ** ** * ***** * ** * * *** * *** *** * * * ******
* * ***** * ** *** **** * * * * 7:
***** * * ** * * * *** * ******* * * * * ** ** **** ** * * * * * * ** * *****
* * * *** *** * * *** * **** * * * * ** * * * * ** * * * *
* * ** * * ****** * *** ** 6:
*** *** ** * * ** ***** *** * * * * * ** * ** **** * * * * * * ** * * * *
* * ** *** ** * * * * * ** * * ** ** * **** *** ******** * * *** * *** * *
* ** ****** * *** * ** * * *** **
* ** ** * * * * * ***** ***** * * * ** * ** ** ** **** ***** * ** *** ** * * *** * **** **** * *** * *** ** * * * **** * ** *** * ** * * * * * * *** * ** *** **** * ***** ** * * **** ** ** * ** * * ** ** *** ****** * ** *
* * * * * ** ** *** ** ** * * ** * * * * * ** ** ** ******** * * * ***** ***** ** * * **** * *** ** ** ***
* ** ****** * ** *** ******* *** *** ** *** * * ** ** ** *
* ** ** * ** * ** ** ** * * ** **** * *** * *** * * *
**** * * * * *** ** * * ** ***** * ** * * ** * * * * ***
}
* * ** * * ** *** *** 0;
}
answered
Sep 29, 2016
by
410223045
(
-194
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 x=0;
printf("please input 0~100:");
scanf("%d", &x);
if (x>=90)
** ** * * ** ** * * * *** * *** * **** *
else
{
*** * * ** *** * ** ** **** *** ** * * (x>=80)
* * ** * ** ** * *********** * * * * *** *** * * * ** ** * * *
******* * * * *** * * * * *** ** * * * **
** * * * * *** ** * * *****
***** * * ** *** ** * * *** *** ** ** * * ** **** (x>=70)
**** **** ** * ** *** * * ** **** *** ** ***** ** ** * ** * *** ** ** **** ** ** ** ** * *
* * ***** * ** * *** ** * ***** **** * *** *** * * *
* * ** ***** **** ******* *** * * ** ** ****** * * **** *******
* **** * * * ** * * * ** * * * *** ** *** ** * * * *** *** ** * * *** * * ** (x>=60)
**** * * * ** ****** ***** *** *** *** * * ** ******* **** ** *** * * ** * ** * ** * **** * * * *** *** * **
* ** ** * **** ** ** * ** * *** * * ** * ** * ** * *** ******* * ** *
* * ** * * * ** *** * * * *** ***** * **** * ** *** * *** *** ** * *** *
* **** * ** *** ***** ** * * * ***** ****** ** *** **** * * * ** * *** ******** ** * ** **** * ** * * * *** ***
**** ** * * *** * *** ** * * ** *** * * ** * * * ******* ** * ** * *****
*** *** ** ***** ** * *** ** * ** ** * ** ** *** * * *** *
* *** ** * ** * * *** * * **** *****
}
return 0;
}
answered
Sep 29, 2016
by
410511226
(
-188
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()
{
*** ***** ** * *** ** ** ****** ** grade = 0 ;
** * ** * **** *** * ** * * ******* * ** * &grade );
** **** ** * * ** * * * * *
* *** ** * ** *** * *** * *** >= 90)
*** * **** * * ** * **** ** * * ******* ** * ****** * *** * *
* * ** * * *** ** ** * * ** *
* * ** *** * * ** *** * * ** < 90) && (grade >= 80))
* ** * ** * ** ** ** * *** * ** ** *** ** * * *
** * ** *** **** *** *** ** * *
* * * * * **** * * ** *** * * * * * ***** < 80 && grade >= 70) ******** * *** **** ******
*** * * ** * ** *** ** * ** ** * *** **** ****
* * * * * *** **** * ** *****
**** * ***** * ** * **** * ** *** * *** < 70 && grade >= 60)
* * *** * * ***** ** * * ** * * * ** * * **** * ** ** *
***** *** * ****** * **** *
*** * * * ** * * * **** ** **
** * ** ****** * * **** * * * * ** * * *
* ** **** * **** **** * ** * **** * * **** * 0 ;
** ** * * * ** * * *** * ** ** * *
}
answered
Sep 29, 2016
by
410223055
(
-186
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * * * ** *
#include *** * * ***
main()
{
* *** * * * ** grade=0;
* *** * * ** * ** ** &grade);
*** * *** (grade>=90)
**** ** * * ** ** * * ** ***
*** * *** * ** * * * && grade>=80)
* *** ** * * * **
****** * ** * * ***** *** *** *** * grade>=70)
* * * * * * *** ** * ** * * *
** ** * ******** * ** * * *** grade>=60)
****** * * *** **** ***
** ** ** ** *** * * * *
** *** * ****** ** ** ** * ***
*** ** * ** ** **** * ** * **
}
answered
Sep 29, 2016
by
410214219
(
-284
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()
{
* * ** * * * * * grade;
** * * *** *** * ** * ***** ** ** the grade");
* ** * ****** *** * * **** * ** ***** * **
** * * * *** * * ** *** ** >= 90)
** **** *** *** ** *** * *** * **** ** **** *
** ** * *** ** * *
* * ** * * ** * ** * * < 90 && grade >= 80)
*** ** *** *** * ** * *** *****
*** * * * * ** * ** * **
** *** ** *** ** * ** <80 && grade >= 70)
*** ** ** ** ** ** *** * * ****** * ** **
*** * * ** * * *** *****
* ******** * * **** *** * <70 && grade >= 60)
* * ***** * *** * * *
** ** * * * ***** **
** * * ** * * * ***
* ** *** ** *** ** ** * ***** * * ***
** ** *** ** *****
*** *** **** * ** **** * **** * * * **
* *** * * * *** ** *
*********** * * * ** *** 0;
***** * * * ** * **
*** ** * ****
* * * * * * * ** * *** *
}
answered
Sep 29, 2016
by
410223045
(
-194
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(){
float grade = 0 ;
* * ** * ** * ******** * ** * ***** * * ** * ** ** *
if(grade>=90)
* ** ** ***** *** ****** *** ** **** *** **** ** ** ** ** * ** ** * *** **
else{
**** ** ** ** ** * ** ** ** * * *** * ** **** **** ** ** ****
* * * **** * * * *** ** * * *** * ** **** *** * * * ** ** **** ** ***** * *** ** ** **** * **
* * * **** *** * * * *** ** * * * * * ******* * * ****** * * ** *
** * **** ** *** * * * * *** ** *** * * * * * * * *** * ** * * ** * **** * ** **** * * * ** * * * ** *
**** ** ******* * * * *** ** * * ** *** * **** * ****** * ***** * ** ** * **** ** ** * * ** * ** ** * *** * ***** * *** ** * ** * *
* * * ** * * *** * * * * *** * ** **** ******* * * ** * * *** * * * * **** * * * * **** * *
** * * ***** * ******* * ** * ** ** **** * * * * * * * ****** ** ** * *** ****** * ** **** * ***** * * * ***
**** ** ** **** ** ** * *** * ** * *** ** ** * * * * * * ** ** *** ** * * ****** * ** * * * * * * *** * ** ** ** * ********* * * ** * * * * ** **
*** * ******* * *** *** ** ** *** ** ** * * *** **** ** * * ***** * * * ** *** *** * ** ** *** ***** ** ** *** * * **** *** ***
** * * ** ***** ***** *** * **** * * *** * * * * * ** * * **** * ** * * ** *** ** * ***** * ** ** ***** * *** * ** * * *** **** **** *****
*** * * ** ******* ** * * *** * ** * ** * ** ** *** * * * *** * **** * * * ** * * ** * *** ****** * * * * * * * **
* * ** ** * * *** *** * * ** *** ** ** * * ***** * *** * ** ** * *** ** * * * *
**** ** * * ** * * * * * * ** * * ******** * *** * * * **** *** **
}
** * * *** *** * ** * ********** * * * ** ** ** ** * *** ** * * * *
return 0;
}
answered
Sep 29, 2016
by
Phoenix666
(
-162
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
4
5
...
8
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.130.187
©2016-2025
Related questions
0
like
0
dislike
40
answers
AD 20160929 作業 3
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11795 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3.2k
views
0
like
0
dislike
159
answers
AD 20160929 作業 2
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11639 -
Available when:
Unlimited
-
Due to:
Unlimited
|
10.6k
views
0
like
0
dislike
26
answers
AD 20161103 作業1
[Exercise]
Coding (C)
-
asked
Nov 3, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16957 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.2k
views
0
like
0
dislike
37
answers
AD 20161020 作業 1
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14579 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.8k
views
0
like
0
dislike
67
answers
AD 20161013 作業 1
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13427 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.6k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users