Simple Programs

C program to check entered number is prime or not

Number prime

USing For loop

Using While Loop

OUTPUT:-

When Number is Prime

number prime

When Number is Not Prime

number prime