Bool in C++

A bool value has two choices,true or false 1 or 0. Boolean values are used when we check some conditions against any statement. In this program we printout two different statements with Boolean true false condition.

Source Code

#include<iostream>
using namespace std;
int main ()
 {
 cout<<" \t \t \t  LEP Tutorials \n \n \n  "; 
 bool LEP = true ;
 if ( LEP ==false)
 {
  cout<<" FUNDAMENTAL OF PROGRAMMING FOR BEGINEERS WITH LEP. \n ";
 }
 else
 {
 cout<<"LEARN COMPUTER PROGRAMMING, JAVA, C++,LINUX,ANDROID WITH LEP.\n "; 
 }
 }

Output of the Program

Bool in C++

Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment