please help me to make the coding of any of these
Attachments:
Answers
Answered by
1
9.
public static void main(int N)
int c=0;
for(int i=1;i<=N; i++)
if (n%i==0)
c++;
if(c==2)
System. out. println("prime");
else
System. out. println("not prime");
public static void main(int N)
int c=0;
for(int i=1;i<=N; i++)
if (n%i==0)
c++;
if(c==2)
System. out. println("prime");
else
System. out. println("not prime");
sonu555:
where is that option
Similar questions
Geography,
8 months ago
Environmental Sciences,
8 months ago
Math,
1 year ago
English,
1 year ago
Chemistry,
1 year ago