1/6
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Conditional Statements
Are statements that executes actions depending on different conditions.
if statements
to specify a block of code to be executed, if a specified condition is true
else statements
to specify a block of code to be executed, if the same condition is false
else if statement
to specify a new condition to test, if the first condition is false
switch statement
to specify many alternative blocks of code to be executed
break;
this is necessary after a case since it will let the program break out of the switch statement.
default:
this is used to handle all cases that weren’t specified.