conditional statements in c++

PHOTO EMBED

Thu Apr 27 2023 17:07:39 GMT+0000 (Coordinated Universal Time)

Saved by @Tarunkumar #c++

#include <iostream>
using namespace std;

int main() {
  int num=3;
  if(num== 1){
    cout<< "hello world 1"<< endl;
  }else if(num==2){
    cout<< "hello world 2"<< endl;
  }else if(num==3){
    cout<< "hello world 3"<< endl;
  }
    else{
    cout<< "hello world"<< endl;
  }
  return 0;
}
content_copyCOPY