Doubt in a program

Question - To write a program using functions to check if a inputted number is prime or not, exit function must be used.
Please explain step by step with example, I am confused badly as to what happens in the for loop.
Last edited on
@cplusplussssa

Couple of problems, here.
1. I see no question, or attempt at one.
2. I also see no function shown, that even HAS a for loop.

So, please show some code, an actual question or a legitimate attempt at the problem, and someone here would probably actually give a d*mn, and offer assistance.
Last edited on
Topic archived. No new replies allowed.