Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

if else in C++

//1
if(condition) {
   statement(s);
}
else {
   statement(s);
}
//2
(condition) ? (true_statement) : (false_statement)
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+6 =