Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ForLoopExample {
- public static void main(String args[]){
- 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
- System.out.println("The value of i is: "+i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement