I don't understand the "For" statement


#1

I am not an English person, but I don't understand what the "For" statement is "For". Could somebody explain me?


#2

Here, maybe this link will help.
http://www.tutorialspoint.com/java/java_for_loop.htm


#3

The for loop is used to return/print your desired output a specific number of times.

For example -: if you want to display numbers from 1 to 20. Instead of writing code for every number from 1 to 20, you can use a for loop which will print the numbers from 1 to 20 without you writing the code for each number.


#5

Thanks for helping me! :grinning:


#6

Thanks for helping me! :smile:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.