google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a C++ program to find the grade of a student - 2nd puc computer science

Write a C++ program to find the grade of a student

Write a C++ program to find the grade of a student

#include<iostream.h>

#include<conio.h>

void main()

{

int marks;

clrscr();

cout<<"Enter marks: ";

cin>>marks;

if(marks>=85&&marks<=100)

cout<< "Distinction";

else if(marks>=60)

cout<< "First Class";

else if(marks>=50)

cout<< "Second Class";

else if(marks>=35)

cout<<"Pass Class";

else

cout<< "Fail";

getch();

}


Write a C++ program to find the grade of a student Write a C++ program to find the grade of a student Reviewed by Vision Academy on February 27, 2022 Rating: 5

No comments:

CheckOut

Powered by Blogger.