New course! Every coder should learn Generative AI!
Try a free lesson0
your question is not clear.
what do you want to do exactly?
your switch statement does not make any sense.
why switch(8)?
normally you should get input before switch() then use it, switch(inputvar)