Thursday, 11 May 2017

C++ Tutorials in Urdu/Hindi [part 11]- else if



code



#include<constream.h>
#include<iomanip.h>
void main(){
clrscr();
 
     // else if
    int score;
    cout<<"enter your score"<<endl;
    cin>>score;
   
            if(score>=90)
   cout<<"your grade is A";
      else if(score>=80)
   cout<<"your grade is A" ;
else if(score>=70)
   cout<<"your grade is A"  ;
else if(score>=60)
   cout<<"your grade is A"   ;
else if(score>=50)
   cout<<"your grade is A"    ;
   else
cout<<"your grade is F";


getch();
}

No comments:

Post a Comment