Please help need help in a question of programming using switch statements only nothing else

Write a program which asks the user to enter a number and determine whether the number entered is prime or not and also determine whether the number input by user was integer or float.

please help me solve this program i can't solve it using switch statements and i can't use loops right now so please help me solve this program using only switch statements
If you can not use loops then you will be unable to determine whether a number is prime because for example recursion is in fact a loop.:)
the thing is that its an assignment i have in which we r only to use switch statements only nothing else i've tried everything but i cannot understand it and can't get the program to work so please help out in solving the question with switch statements thanks
Topic archived. No new replies allowed.