Horje
if else in C++ Code Example
if else in C++
//1
if(condition) {
   statement(s);
}
else {
   statement(s);
}
//2
(condition) ? (true_statement) : (false_statement)
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;   
}




Cpp

Related
how to input in cpp Code Example how to input in cpp Code Example
return array of string in function c++ Code Example return array of string in function c++ Code Example
REFERENCE C++ Code Example REFERENCE C++ Code Example
c++ convert int to double Code Example c++ convert int to double Code Example
qt make widget ignore mouse events Code Example qt make widget ignore mouse events Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9