0% found this document useful (0 votes)
9 views2 pages

C++ Student Grade Calculator

The document is a C++ program that takes user input for student marks and determines the corresponding grade based on predefined ranges. It includes conditional statements to categorize the grades from A to F. There are some syntax errors in the code that need to be corrected for it to compile successfully.

Uploaded by

teferiyonate
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

C++ Student Grade Calculator

The document is a C++ program that takes user input for student marks and determines the corresponding grade based on predefined ranges. It includes conditional statements to categorize the grades from A to F. There are some syntax errors in the code that need to be corrected for it to compile successfully.

Uploaded by

teferiyonate
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

C++ Language

1 //take marks from user

2 //find grade of student

3 //on the base of marks

4 #include <iostream>

5 using namespace std;

6 int main ()

7{

8 int marks;

9 cout<<”Enter Marks:”;

10 cin>>Maks;

11 if(Marks>=90)

12 cout<<”Grade A:”;

13 else if (Marks>=75)

14 cout<<”Grade B:”;

15 else if (Marks>=50)

16 cout<<”Grade C:”;

17 else if (Marks>=40)

18 cout<<”Grade D:”;

19 else

20 cout<<”Grade F:”;

Return 0;

You might also like