MidTerm cheatsheet
MidTerm cheatsheet
switch (variable)
{
case value1:
// code to execute if variable == value1
break;
default:
// code to execute if none of the cases match
break;
}
do
{
// code to execute at least once
} while (condition);