Computer Science, asked by blessed30, 8 hours ago

write a program to enter a number. Find and print if it is a prime number or not​

Answers

Answered by rambeersingh297
0

Answer:

include<stdio.h>

int main(){

int n,i,m=0,flag=0;

printf("Enter the number to check prime:");

scanf("%d",&n);

m=n/2;

for(i=2;i<=m;i++)

{

Answered by ligayadacanay
0

Answer:

int number=1

int prime number =0

boolean check =true

while ( check)

int numof factors =0

Similar questions