Explain the term for Loop? With Example ?
Java Programming
50 points
(:
Answers
Answered by
0
Answer:
Well, in programming language, a loop is basically a set of statements that will be executed until a condition is no longer true, like a while loop, for example.
In the while loop, which is a control flow statement, it will be executed depending on a boolean stament (True or False).
Let's see a Java programming sample of which loop:
while (Boolean statement) {
// body of your code
}
The code above shows the Java syntax
Now an example using python:
countPoints = 6
while countPoints > 0:
print("something")
else:
print("anotherStuff")
In order to understand the statements, syntax of whatever programming you're learning, practice is the path, practice makes perfect.
Answered by
1
Explanation:
PLZZZZ mark me as a brainlist
Attachments:
Similar questions
Math,
5 months ago
English,
5 months ago
Math,
10 months ago
English,
10 months ago
Business Studies,
1 year ago