C++ COURSE

C++ If Else

Learn C++ programming with EDUHUB Code Hub.

C++ Conditions

Conditional statements allow programs to make decisions.



int age = 18;


if(age >= 18){

cout << "Adult";

}

else{

cout << "Child";

}


Adult