if (something)
{
do this
}
else
{
do something else
}
ETA Use brackets! {}
Let me try this again
if (something)
{
do this;
to this too;
do this third thing too;
}
else
{
do something else;
do this other thing;
do one other thing too;
}
so i'm trying to make a sort of layered program, where i give an 2 options, one of those options is chosen by the user, and then another set of instructions is given to the user. my problem is that i use "if" and "else if" to decide which program will be used, but once one option is chosen, i dont know how to continue on with that one option and have the other option be cancelled out.
for example, option 1- find the radius or option 2- find the length. once the option is chosen, i dont know what to use so that i can write out both formulas to find the radius and the length, but only have one activate when the user enters either 1 or 2.