Programming Course. The Basics of Programming.
#26 While Statement
Learn to code.
Writing a while statement
Before i write some simple iteration code here, i need you to answer a quick question.
This is not a trick question, but i’m interested in the first answer that comes to your mind.
Here is the question.
You need to build a straight fence. Needs to be 50 meters wide. And you need fence posts every 10 meters. How many fence posts do you need?