Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ดลลี่
Language: C/C++
Code:
#include <stdio.h>
int main()
{
         float s;
         printf ("Enter your score:");
         scanf ("%f",&s);
         if (s>=80)
         {printf ("Your get:4(A)");}
         else if (s>=75)     
         {printf ("Your get:3.5(A-)");}
         else if (s>70)
         {printf ("Your get:3(B)");}
         else if (s>=65)
          {printf ("Your get:2.5(B-)");}
         else if (s>=60) 
          {printf ("Your get:2(C)");}
         else if (s>=55)
           {printf ("Your get:1.5(C-)");}
         else if (s>=50)
          {printf ("Your get:1(D)");}
         else 
           {printf ("Your get:0(F)");}
         scanf ("%f",&s);
}

          
          
          
          
          
          
          
          
Comments: