0
I couldn't able to understand for loop 😢
Explain please
4 Respuestas
+ 6
You mean python. If yes, here is how it works:
If you want to print something multiple times, you can do it with a for loop:
for i in range(5):
print("Hello")
It prints "Hello" 5 times using a for loop.
Here are some examples of how a for loop works:
https://code.sololearn.com/camUZy7rjC1X/?ref=app
+ 3
S. V. Shivaani it would helpful to know in which programming language.
Example in java: "for(int i=0;i<5;i++)"
Int i=0 -> startvalue of loop
i<5 -> when the loop should end
i++ -> what should do After each loop run (increase i by 1 each time)
+ 1
FunOfCoding yeah python .thanks I will see