write a program whichask the user to enter the positive integer. then the program to display whether the user to enter the number is prime number or not. (prime number is the number which is divisible by one and the number itself)

Salem commented: Any half-wit could type the same into google and be taken straight to an answer on a plate -3

I suggest the next time you post, if you do decide to, you read this: http://www.daniweb.com/forums/announcement8-2.html

The least you could've done was say please, and show some effort instead of (probably) copying it straight from your worksheet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.