I'm trying to make a java program that takes a number given by the user, and displays whether it is odd or even. I am having trouble, i think it might be tht my logic is wrong idk. It just prints the never ending message "odd"
import java.util.Scanner;
public class Questions {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    System.out.println("Your number");
    int number = input.nextInt();
    for (int i = 0; i <= number; i = +2)
      if (number == i) {
        System.out.println("even");
      } else {
        System.out.println("odd");
      }
  }
}
 
     
     
     
     
     
    