I'm new to coding.
I'm using 'Let us C' book to learn C myself.
So I need help from experts.
Please check code below. I have mentioned the problem too below.
Above is the code I wrote.
/*Check wheather the entered number is prime.*/
int mod, i, num, div;
printf("Enter the number:");
printf("%d is not a prime number\n",num);
printf("%d is a prime number\n",num);
printf("Do you want to enter another number?(y/n):");
The programming in running once correctly, but it's not looping. ie., it is not even giving me an option to type y/n. Can someone help me for this?