1. Home
  2. /
  3. Blog
  4. /
  5. if statement in c++
C++

if statement in c++

October 1, 2022 1 min read 2,266
if statement in c++
#include <iostream>

using namespace std;

int main()

{

int x=5

if (x<5)

{

cout<<"hello"<<endl;

}

else if ( x==5)

{

cout<<"welcome"<<endl;

}

else{

cout<<"nothing"<<endl;

}

}
Share:
Read next

Related articles