Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ if else example

// C++ program to illustrate if-else statement
#include<iostream>
using namespace std;
 
int main()
 {
        int i = 20;
  
        if (i < 15)
            cout<<"i is smaller than 15";
        else
            cout<<"i is greater than 15";
             
    return 0;   
 }
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+1 =