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
5.4k points

1 Answer

3 votes

Answer:

write 2:4$+8*

Step-by-step explanation:

User Mark Byers
by
3.7k points