0

I couldn't able to understand for loop 😢

Explain please

6th Jan 2021, 2:12 PM
S. V. Shivaani
S. V. Shivaani - avatar
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
6th Jan 2021, 2:15 PM
Baspberry
+ 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)
6th Jan 2021, 2:16 PM
Marc
Marc - avatar
+ 1
FunOfCoding yeah python .thanks I will see
6th Jan 2021, 2:17 PM
S. V. Shivaani
S. V. Shivaani - avatar
+ 1
Marc in python .ok thanks I understood
6th Jan 2021, 2:18 PM
S. V. Shivaani
S. V. Shivaani - avatar