Computer Science, asked by pushpandersingh666, 7 months ago

Rewrite the following for loops by using while and do – while loops:

int a =37, b,c = 0;

for(b=1; b<=a; b++)

{

if (a%b==0)

c = c+1;

}

if (c==2)

System.out.println(a+“is a primer number”);

else

System.out.println(a+“is not a primer number”);​

Answers

Answered by Anonymous
4

Answer:

please mark in Brainlist

Similar questions