Skip to content
Programming101
Programmingoneonone

Learn everything about programming

  • Home
  • CS Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programming101
Programmingoneonone

Learn everything about programming

C++ program to find out the grades of given marks

YASH PAL, 31 July 202422 August 2024

In this article, we will write a  C++ program to find out the grades of given marks. in this program user will enter the total marks and based on that program will print the grade of that student.

C++ program to find out the grades of given marks

C++ program to find out grades of marks.

#include<iostream>
#include<conio.h>

int main(void)
{

    int marks;

    std::cout<<"Enter the marks = ";
    std::cin>>marks;

    if(marks >= 85)
        std::cout<<"The Grader is A+";
    else if(marks >= 80)
        std::cout<<"The Grade is A";
    else if(marks >= 75)
        std::cout<<"The Grade is B+";
    else if(marks >= 70)
        std::cout<<"The Grade is B";
    else if(marks >= 60)
        std::cout<<"The Grade is C";
    else if(marks >=50)
        std::cout<<"The Grade is D";
    else
        std::cout<<"The Grade is F";

return 0;
}

Output

Enter the marks = 67
The Grade is C
C++ Programming Tutorials coding problems solutions

Post navigation

Previous post
Next post

Pages

  • About US
  • Contact US
  • Privacy Policy

Programing Practice

  • C Programs
  • java Programs

HackerRank Solutions

  • C
  • C++
  • Java
  • Python
  • Algorithm

Other

  • Leetcode Solutions
  • Interview Preparation

Programming Tutorials

  • DSA
  • C

CS Subjects

  • Digital Communication
  • Human Values
  • Internet Of Things
  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2025 Programmingoneonone | WordPress Theme by SuperbThemes