Coding Question 15
Write a C program to check a number is prime or not. #include<stdio.h> int main() { int num,x,fl=0; printf("n Enter the a Number: "); scanf("%d",&num); for(x=2;x<num;x++) { if(num%x==0) { fl=1; break; } } if(fl==0) printf("n %d is Prime No.",x); else printf("n %d is not Prime No.",x); } Join Our Telegram Group Visit our Facebook Page […]