Is determining a number from the input an option? I.e. first do the comparing with
if
s, determine the number of a possibility and then go on with a swicth on that number. If that is not an option then many programmers will be convinced that what you are trying is impossible and ask you to clarify why you are convinced that what you are trying is possible. If a teacher is involved please quote the whole assigment, maybe you have misunderstood something. —
Yunnosch 57 secs ago