<<<Index>>>

if-else statement example



#include <iostream>
int main()
{
    int x = -1;
    
    if ( x > 0 ) { 
    
        std::cout << "x is a positive number"; 
        
    } else { 
    
        std::cout << "x is a negative or zero"; 
    } 
    return 0;
}


<<<Index>>>