CodeMarshal Solution গ্রেডিং পদ্ধতি ( Grading Method ) - In C Programming - Online Judge Solution

Latest

It is a free Online judges problems solution list. Here you can find UVA online Judge Solution, URI Online Judge Solution, Code Marshal Online Judge Solution, Spoz Online Judge Problems Solution

Tuesday, May 9, 2017

CodeMarshal Solution গ্রেডিং পদ্ধতি ( Grading Method ) - In C Programming

CodeMarshal Solution গ্রেডিং পদ্ধতি ( Grading Method ) - In C Programming


CodeMarshal Online Judge Solution  Grading Method
CodeMarshal Main Problem Link - https://www.algo.codemarshal.org/problems/5518451d6b8f16da095db181

Problem Name: CodeMarshal Problem  গ্রেডিং পদ্ধতি ( Grading Method )
Problem Number : CodeMarshal Problem   গ্রেডিং পদ্ধতি ( Grading Method )  Solution
Online Judge : CodeMarshal Online Judge Solution
Solution Language : C

CodeMarshal Solution গ্রেডিং পদ্ধতি ( Grading Method ) - In C Programming

CodeMarshal Solution গ্রেডিং পদ্ধতি ( Grading Method ) Code in C:


#include<math.h>

int main ()
{
    int i, j, n, number;

    scanf("%d", &n);

    for(i = 1; i <= n; i++)
    {
        scanf("%d", &number);

        if(number >= 90 && number <= 100)
            printf("Student %d: %s\n", i, "A+");

        if(number >= 80 && number <= 89)
            printf("Student %d: %s\n", i, "A");

        if(number >= 70 && number <= 79)
            printf("Student %d: %s\n", i, "A-");

        if(number >= 60 && number <= 69)
            printf("Student %d: %s\n", i, "B+");

        if(number >= 50 && number <= 59)
            printf("Student %d: %s\n", i, "B-");

        if(number >= 40 && number <= 49)
            printf("Student %d: %s\n", i, "C");

        if(number >= 35 && number <= 39)
            printf("Student %d: %s\n", i, "D");

        if(number >= 0 && number <= 34)
            printf("Student %d: %s\n", i, "F");
    }

}


Tag : CodeMarshal Solution in C, গ্রেডিং পদ্ধতি ( Grading Method ) CodeMarshal Solution, Greading Method solution in C,

No comments:

Post a Comment