If, Else if, else
So last time we talked about conditionals and what are they, this time we are talking about if, else if, and else. These also have to do with conditionals you are gonna see why.
So for exaple, if i do 5 jumpingjacks I get a slice of pizza else if, if i do 2 jumpingjacks I get half a slice else if I do 0 jumpingjacks then I get nothing.
So if 5 jumpingjacks I get a slice of pizza
else if if i do 2 jumpingjacks i get half a slice
else 0 jumpingjacks no pizza
The condition is the jumpingjacks
by Salma Ashraf
So for exaple, if i do 5 jumpingjacks I get a slice of pizza else if, if i do 2 jumpingjacks I get half a slice else if I do 0 jumpingjacks then I get nothing.
So if 5 jumpingjacks I get a slice of pizza
else if if i do 2 jumpingjacks i get half a slice
else 0 jumpingjacks no pizza
The condition is the jumpingjacks
by Salma Ashraf
Comments
Post a Comment