text: Q:
  
  Unexpected behavior of a switch statement in a for loop
  
  The code below displays even the case 20, but my int x is equal to 10 only.
  What I want to happen is if x = 10, then I should show case 10 only. The problem is that it also shows case 20.
  public class For_Loop {
  
   public static void main(String[] args) {
  
    for (int x = 10; x <= 20; x++){ 
     switch (x) {
  
      case 10:
          System.out.println ("Ten");
          break;
  
      case 20:
          System.out.println ("Twenty");
          break;
  
      default:
          System.out.println ("None");
          break;  
      }
     }
    }
  }
  
  A:
  
  condition should be incrementing by 10:
  for (int x = 10; x <= 20; x=x+10)
  
  