Computer Science, asked by Anonymous, 10 months ago

Explain the term for Loop? With Example ?

Java Programming

50 points

(:​

Answers

Answered by mirai123
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 TIYACHAKRAWARTI
1

Explanation:

PLZZZZ mark me as a brainlist

Attachments:
Similar questions