C++: Conditionals and Logics Flashcards
1
Q
An if statement is used to test an expression for
A
truth and execute some code based on it.
Here’s a simple form of the if statement:
if (condition) {
some code
}
An if statement is used to test an expression for
truth and execute some code based on it.
Here’s a simple form of the if statement:
if (condition) {
some code
}