Thursday, 11 May 2017

C++ tutorials in Hindi / Urdu [09] if - else condition


    Relational Operators  and conditional statements in c++.

part 9


WatchOnYoutube

Source Code

#include<constream.h>
#include<iomanip.h>
void main(){
clrscr();
   
     // Relational Operators and conditional statement
    if(10<5)
       cout<<"10 is less than 5"<<endl;


    if(10>5)
       cout<<"10 is greater than 5"<<endl;

    if(10!=5)
       cout<<"10 is not equal to 5"<<endl;
    if(10<=5)
       cout<<"10 is less than or equal to 5"<<endl;
    if(10>=5)
       cout<<"10 is greater than or equal to 5";

getch();
}


No comments:

Post a Comment