Computer Science, asked by tonystark999b, 1 year ago

difference between if else ladder and switch statement?

Answers

Answered by karangreat
1
switch and if seems to be same but r different.
else is used with if statement and it is optional .
switch is used for say .. giving probability of things . best example of this is given in game clash royale in which the cards have different rarety in which common cards have most probability and legendary very least it is done using switch statement .
Similar questions