Computer Science, asked by schoolclean4529, 9 months ago

WAP A Menu driven program to enter a number and check whether it is a. Prime number or not or automorphic number or not (in java)

Answers

Answered by prap444pdejk6
1

Answer:

Explanation:

int i,j,c=0;

PRIME NUMBER

for(i=1;i<=n;i++)

for(j=1;j<=n;j++)

if(i%j==0)

c++

if(c==2)

System.out.println("PRIME NUMBER");

Similar questions