#includemain(){int num, i;printf ("Enter a number:");scanf ("%d", &num);i=2;while (i<=num - 1){if (num % i ==0){printf ("Not a prime number");break;}i++;}if (i == num)printf ("Prime Number");}
what if dont wanna use break statement?
you can use goto & control the flow of program as you want...
what if dont wanna use break statement?
ReplyDeleteyou can use goto & control the flow of program as you want...
ReplyDelete