if esle in c++

C++

  if (condition) {
  // block of code to be executed if the 
  condition is true
}

  
  if (condition) {
  // block of code to be executed if the 
  condition is true
} else { 
  // block of code to be executed 
  if the condition is false
}


  
Source

Also in C++: