Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


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

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