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!: Computer Solutions || Class-4 || Computer for Scho...

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho... :  1) Choose correct one :- 1) The step by step pla...