Answers for "conditional if in c++"

C++
0

if else in C++

//1
if(condition) {
   statement(s);
}
else {
   statement(s);
}
//2
(condition) ? (true_statement) : (false_statement)
Posted by: Guest on April-30-2021
0

if statement C++

if (condition)
{
	// block of code
}
else if (condition)
{
	// block of code
}
else {
	// block of code
}
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language