Muzafar Ali wrote:write a program to generate 100 int numbers, strore in array, then display all those numbers which are prime numbers?

but how i can print prime numbers from 1 to 100 but this whole question confused me?

Think of it as three steps.
1) Can you write a loop that iterates 100 times?
2) Can you create an array of those numbers?

So far, this should be easy.

Now the prime number part. How do you know if a number is prime? Try talking it out by writing here and then once you have the idea you can write it as code.

Thanks for your reply sir,
A prime number is a number which is self devisble, mean a number that cannot be devide with other numbers!
am i correct sir?