Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

if else in c++

// C program to illustrate If statement
#include <stdio.h>
 
int main() {
    int i = 20;
 
    if (i < 15){
       
        printf("i is smaller than 15");
    }
    else{
       
        printf("i is greater than 15");
    }       
    return 0;   
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+4 =