Computer Science, asked by sujit1970dutta, 6 months ago

write a loop program to display all even 2 digit numbers
lf can't please leave it..​

Answers

Answered by archana4922
3

for loop:-

public class even_1

{

public static void main (String arts[])

{

int x=0;

for(x=10;x<=99;x++)

{

if(x%2==0)

{

System.out.println ("even="+x);

}

else

{

System.out.println ("odd="+x);

}

}

}

}

hope it helps you ✨✨✨

Similar questions