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!: Class - 7 A or B | Computer | 100 Questions!

Programmingway@Eklavya Technosys!: Class - 7 A or B | Computer | 100 Questions! :  1) What is digital citizenship? 2) What is a digital citi...