Thursday, August 5, 2021

C++ Program to find grade based on percentage

C++ Program to find grade based on percentage

#include<iostream.h>

#include<conio.h>

void main()

{

 int p;

 clrscr();

 cout<<"\nEnter Percentage: ";

 cin>>p;

  if(p>=80)

  {

   cout<<"\n Grade A+";

  }

  else if(p>=60)

  {

   cout<<"\n Grade A";

  }

  else if(p>=45)

  {

   cout<<"\n Grade B";

  }

  else

  {

   cout<<"\n Grade C";

  }

 getch();

}

   

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JAC Board Computer Examination Sample Questions Hi...

Programmingway@Eklavya Technosys!: JAC Board Computer Examination Sample Questions Hi... : 1) Which of the following is NOT a web service? (...