0 like 0 dislike
1.2k views
請設計一個程式當使用者輸入一個分數(介於0-100間),程式會輸出相對應的等第

 

輸入範例1

100

輸出範例1

A

輸入範例2

59

輸出範例2

F
[Exercise] Coding (C) - asked in 作業 by (18k points)
ID: 11603 - Available when: Unlimited - Due to: Unlimited
| 1.2k views
0 0
Called for Help

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)
* * * **** ***** ** * ***** ***** * ** * * ** * **** * ** * *** * * *** *** ** * * ** * * ** ** *** *
**************** * ***** * **** * ** * * * * *** * * * *
** * * ** * * *** * **** **** ***** * ** ** ** * ***** * ** *
* **** ** ** * ** **** * ** ** * *** *** * ** * *** * * **** * **** ** * * (x>=60)
* ** *** *** ** *** ** **** * **** * ** ***** * * *** * *** * * ****** ** ** * *** *** ** *** ** ** ** **********
** *** * * * * * ** ** *** **** ** * * **** **** ** ** ** * * ** * * * *
* *** **** * * * ** ** * ** * ** ** ** * ******** * ** * * * * * ** * *
** ****** * ** ** *** * * ****** * * ** ** ** *** * * * * ** * * * *** * * * **** * * * ** ** * *** *** * * * * ** * *
*** ** ** * * * ***** **** ** **** ** ** ** *** * * * ***** * * ** * * * *** *
***** * ** * * * ** * ** * ** * * * ** ** ** **** *
* * *** * ******* ** * * ** * **

   }





   return 0;

}
answered by (-188 points)
0 like 0 dislike
Hidden content!
#include * * ** * **

#include * *** *** *** **

main()

{
* ***** **** * *  grade=0;
* * *** **** **** * ** &grade);
** ** ** * ** (grade>=90)
* *** * * ******* * *** * * * * *
* **** ** * * ** ***** *** && grade>=80)
*** * * * ** * * **** *****
**** ** ***** * ** **** ***** ** ** grade>=70)
*** * * ** ** * * * *** * ** * *
* * ** * ** ** *** ** * * grade>=60)
* * ******** * ** *
* * * * * **** * *
* * * * * ******* **** *** * *
* *** * * * * * ********

}
answered by (-284 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()

{

    int score = 0;

    int level = 0;
** * * ** **** ** ** **** * ** * ** ** &score);

    level = score / 10;
**** * ** ******** * *** *

    {
* * *** *** ****** *** * * ** *** *** * ** * ** 10:
** ****** **** * *** *** *** * * ** * ** *** * 9:
** * ***** * * ** ** ** * ** * * * ** *** ** * *** * ** * * * * ** **
* * * *** * *** * * **** * ** * ** *** *** ** * ** * ** *
** *** ** ** ** * ** * **** * ** * * ** * 8:
* ** * * * ** ** * *** ****** * *** **** * * * * * * * ** * *** * * ** *
* **** * *** *** * ** ***** ** * * * * * * ** ** * *
* * *** * *** * * * * ** * * **** * 7:
**** ** **** * ** * *** * ** ** ** **** ** **** * *** ** ****** **** ** *** * *
**** ** * * ** ** ** ** * ******* *** ***** * * * ***** * * **
* * * **** ****** * **** *** * **** * 6:
** ** * * ** ** ** * * *** * *** * **** * ******* * *** ** **** * ** * * *
*** ** **** *** ** * * * ** * ** * *** *** * *** * ** *
* * *** * * * * ** ** * *** * ** * * **** * *
******* * * *** * * * ***** * * * * ** * ****** * *** * * * **** *

    }

    return 0;

}
answered by (-202 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()

{

    int score = 0;

    int level = 0;
*** * *** **** *** *** ******* * enter your score\n");
**** ** * ** ** * ********* ** &score);

    level = score / 10;
* ** ** * ** * * **** * *

    {
***** * * ***** * ** * * * ** *** ** * *** 10:
**** * **** * *** ** ** **** * ** * **** * * 9:
** **** ** ** ** **** **** * ** * * * **** * * ******* * ** * ***
* ** * **** **** ** ** *** * *** * ** *** ** * * * ** * *
*** * **** * * ** * * * ** ***** * * * * ** * 8:
**** ** * ** * ** * ***** * * * * * ***** * *** * * ** ** * * * * * * ******* * * * * *
* * *** * *** ***** * * * * *** ****** **** ** ** **** *** ******
*** * ** *** *** **** * * * * ***** * **** 7:
* * * * * ***** * * * *** *** ****** ****** * *** * ** *** * ** * * **** * * * * *
******* ** ** * *** *** * **** **** * ** * ** * * ** **
** ** * * * *** *** **** * ** *** * * * 6:
* * * * ** *** * * * * *** **** *** * ** ** ** ** * *** ** *** *
****** ** * ** ** ** * ***** * **** * ** ** ** *** *** * * * **** * * **** *** * ****
** * ** ** * * ** * * * ** * * * * * * *
** *** *** * ***** ********* * * * ** * * ****** ***** * * *** ** * * *** ** *** * **

    }

    return 0;

}
answered by (-202 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main()

{

    int a;
* * * * * * **** * * **** * * ** **

    

    if (a>=60)

    {
**** * ** *** **** * * * * * ** * * ** * ** ** *** * * * *** ****** * * * ("A\n");
* ******** **** ** *** * ***** * ** * ** ** * *** * ** *** **** * * * **
* ** * *** * * *** ** *** *** * * * * * * * ** * * ** **
* **** * ** ** ** * ***** * *** * *** * * **** * * * * *** ** ***
* *** * ** * *** * **** *** * *** * * **** ** * ****** * *** * ** * *** * * ** **** *** ***** * * *** *** *** ***
* * * * * *** * * * ** * * * ** ** * * * ******* * * ** * * ** ** * *** * * * * ***** * **
* *** * * ***** * * * * * ***** *** * ** * * * * ***** * * ** * *** * ***** * * * * ** ** * * * * *
** * *** *** ** * * * * * * * ** * *** * * * * * ** * ** * * ******** ** * ****** * *
answered by (70 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>

int main()

{

   int num;

   //printf("Please input your score:");

   scanf("%d", &num);

   

   if (num >=90)

   {

       printf ("A\n");

   }

   else if (num >=80)
** * ** * * *** * ** *** *** *** * *
** ** * **** * * ***** ** * * * ** ** * ** * * * *** * * * ****** *** ***** *** * *
** **** * ******* * * ****** *** * **
** *** ***** * **** * ** *** ** ** * ** **** if (num >=70)
** **** * *** *** * * ** * **** ******* *** ***** * * ** *** * * *
** * *** * *** ** * **** ** * *** * *** * * * ***** ** ** *** * *** * * * **** * * * *** *** * *** ***
***** *** * * ** * * ** ******* * * ** **** *** *** ** * ** ** ***** ******
* ** ** * * * * **** * * ** * * ** * * * * * * * * ** *** * * if (num >=60)
****** * ** *** ** * ***** ** * * * * ** * * * * *** * **** ** **** * ***** ***** * ** **** * **
*** *** ** ** * ** * * * * * * *** ** * ** * ** * * **** * ** *** * * ** ** **** ** * * * ** * * *** ** * *
** ** * * ** * * * **** * **** * * * *** ** * * ******* * * * **** * *** **** * *** * ** * **** *** ***
* ** ** **** ** ** ** * ** * * ** * *** * * ** * *********** * **** ** ** ** ** ** ** ********* *

* * *** * * * ** ** **** * * * * ** * ** *** ** ** * *** * ** * *** * * *** ******** ** * **** * ** ** ** ** *** * **** *
*** *** ** * ** ** ** ** * * * * ***** * ** * * *** * **** * **** * *** * * * * ** * * *** ** *** * ** ** * * *** * *** ** * * * * * * * ** * * *
* * ** **** * **** ** * ** * * * *** **** **** **** * * * * * * ****** * *** *** * * *** ** ***** *** *** * ** *** *** *
** *** ** * ** ** ** ** * * ** * ** **** ** * ** ** *** **** * ** *** * *** * * * *** ** * * ** * *** * *** ** ** * **** ********* ("PAUSE");
*** * * * **** * * * * * * ** ******* ** *** * * * * * ** * * * ***** * ** * *** ***** * * ** ** * ** ******** ** ***** * * * 0;

}
answered by (-110 points)
0 like 0 dislike
Hidden content!
** ** * * ***** * **

int ** *

{

int i=0;
* ** ** ** ****

if *
* * ** ** * *
*

if * ** *
* *** *** ** *

else

if ** *
* *** ***** ******

else

if **** ****
* **** * * ** *

else
* ***** *
** 0;

}
answered by (-304 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



int main()

{

    int t;
***** * * *** * * * * * * ***
** * *** ** *** * * **** (t>=90)
* * ** *** * * * ** ** ** * ** **
* ** * **** *** **
*** *** * ** * **** ** (t>=80)
* * * * ***** * * ** ***** *
* * * **** * * * * **** *** * ***
* ** ** ** ** * * * ** * * * (t>=70)
* * ** * *** **** * * * * ** ****
* * * * * * * * ** *** * * * *
* * ** *** ** ** *** ***** (t>=60)
* * *** *** * ** * * ***** * *** * ** ***
** ** * *** *** * * ** ** *
* ***** * * *** **** *** * * ****** * ***
**** *** ** ** ** **** ***

     }
answered by (-102 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



int main()

{

    int t;
* * * * * * *** * input your grade:");
* *** * ***** ******* * **** * ***** ** **
** * * * * ** * ** * ** * (t>=90)
** * * * *** * ** * ** *** * * * *** ** *
**** ******* * * * ** ***
* * ** * * * * (t>=80)
* ** * * *** *** * **** * * ** * * * * ***
*** * *** * * * * * *** ** ** *
*** ** * ** *** ** * *** * * (t>=70)
* ** * *** ** ** * ***** * *
*** ** * * * * * ****** *** *
* **** *** *** * ** * * *** (t>=60)
** * *** * * * ** * * ** ***** * * ** * *
** *** **** ******* *** ****
* * ** ** *** *** * * * * ** *
** *** * **** * *** * ** * * *

     }
answered by (-102 points)
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 by (-64 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.126.46
©2016-2024

Related questions

0 like 0 dislike
40 answers
[Exercise] Coding (C) - asked Sep 29, 2016 in 作業 by Shun-Po (18k points)
ID: 11795 - Available when: Unlimited - Due to: Unlimited
| 988 views
0 like 0 dislike
159 answers
[Exercise] Coding (C) - asked Sep 29, 2016 in 作業 by Shun-Po (18k points)
ID: 11639 - Available when: Unlimited - Due to: Unlimited
| 2.3k views
0 like 0 dislike
26 answers
[Exercise] Coding (C) - asked Nov 3, 2016 in 作業 by Shun-Po (18k points)
ID: 16957 - Available when: Unlimited - Due to: Unlimited
| 566 views
0 like 0 dislike
37 answers
[Exercise] Coding (C) - asked Oct 20, 2016 in 作業 by Shun-Po (18k points)
ID: 14579 - Available when: Unlimited - Due to: Unlimited
| 696 views
0 like 0 dislike
67 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (18k points)
ID: 13427 - Available when: Unlimited - Due to: Unlimited
| 1k views
12,783 questions
183,443 answers
172,219 comments
4,824 users