Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


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

     scanf("%f",&a);
}     
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
Comments: