Write C# program to check whether a number is Prime number or not using while & for loop
belongs to collection: C# Language Loop Programs with Examples
All Answers
total answers (1)
belongs to collection: C# Language Loop Programs with Examples
total answers (1)
I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability.
Check whether a number is Prime number or not using while loop
Check whether a number is Prime number or not for while loop
Result:
Enter any number: 19
19 is a Prime Number
need an explanation for this answer? contact us directly to get an explanation for this answer