samedi 30 juillet 2016

Java code doesn't work [on hold]

Hey guys i am have a problem in java coding. I am using eclipse and my code is as following:

public class Application {
  public static void main(String[] args){
    int loop = 100;
    int looop = 90;
    while(loop > looop)
      System.out.println(looop);
    looop = looop + 1;
  }
}

The output should be like this:

90 
91
92
93
94
95
96
97
98
99

But it keeps on printing 90 and doesn't stop the loop.

Aucun commentaire:

Enregistrer un commentaire