Friday, 2 May 2014

Write a program take the character input from the user and determine grade of child.(using if else)

Leave a Comment

Solution :- 

 

 

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    char Grade ,A,B,C,D,F;
    cout << "Enter the Grade " << endl;
    cin>>Grade;
    if(Grade=='A'||Grade=='a')
        cout<<"Your child is Excellent in class \n";
        else if(Grade=='B'||Grade=='b')
        cout<<"Your child is very good in class\n";
         else if(Grade=='C'||Grade=='c')
        cout<<"Your child is  good in class\n";
        else if(Grade=='D'||Grade=='d')
        cout<<"Your child is poor in class\n";
        else if(Grade=='F'||Grade=='f')
          cout<<"Your child is fail in class\n";
    getch();
}




If You Enjoyed This, Take 5 Seconds To Share It