Advertisement
darius90

07. Java for ciklus

Jan 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1.  class ForLoopExample {
  2.     public static void main(String args[]){
  3.          for(int i=10; i>1; i--){ //i=10;=i értéke i>1;=meddig csökkentse i--=i-1 majd i-1=vagyis előző szám-1
  4.               System.out.println("The value of i is: "+i);
  5.          }
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement