Docstoc

TO CHECKNGRADE C++ PROGRAM

Document Sample
TO CHECKNGRADE C++ PROGRAM Powered By Docstoc
					#include<iostream.h>
#include<conio.h>
main()
{
       float marks;
       cout<<"please enter marks in percentage";
       cin>>marks;
       if(marks>=90){
                      cout<<"Your grade is A";
                      }
                      else if(90>marks||marks>=80){
                           cout<<"\nYour grade is B";
                           }
                      else if(80>marks||marks>=70){
                                            cout<<"\nYour grade is C";
                                            }
                      else if(70>marks||marks>=60){
                                                 cout<<"\nYour grade is D";
                                                 }
                      else if(60>marks||marks>=50){

cout<<"\nYour grade is E";
                                                                 }
                                                                 else

if(50>marks){

cout<<"\nYour grade is F";
                                                                        }


getch();
                                                                        }

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:5
posted:9/22/2012
language:Romanian
pages:1
Description: TO CHECKNGRADE C++ PROGRAM