206k views
11 votes
System.out.print();

System.out.print("Enter a number less than
100: ");

num = Expo.enterInt();


for (int i=1; I <= num; I++){

if(num %2!=0)

System.out.println(num + " is odd");
else

System.ouy.println(num +"is even")

}

System.out.println();
}
}

Say I enter 5. The loop makes 5 show up 5 times instead of the numbers 1-5 saying if it's even or odd​

User Enryu
by
9.3k points

1 Answer

3 votes

Answer:

write 2:4$+8*

Step-by-step explanation:

User Mark Byers
by
7.7k points

Related questions

asked Jan 26, 2022 99.1k views
Honestann asked Jan 26, 2022
by Honestann
7.7k points
1 answer
4 votes
99.1k views