/* 3- Write a program to print the numbers between 1 and 10, along with an indication of whether each is even or odd, like this: 1 is odd 2 is even 3 is odd ... (Hint: use the % operator.) */ for(int i=1;i<=10;i++) { if(i%2==0) System.out.println(i+" is even"); else System.out.println(i+" is odd"); }