“while-Schleife” Code-Antworten

While-Schleife

A while loop statement in Java programming language repeatedly executes a target statement as long as a given condition is true. 

Syntax : 
while(Boolean_expression) {
   // Statements
}
Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and true is any non zero value. 

When executing, if the boolean_expression result is true, then the actions inside the loop will be executed. This will continue as long as the expression result is true.

When the condition becomes false, program control passes to the line immediately following the loop.
Important Ibis

while-Schleife

#input                                    # output
a=6                                        quantity of commodity=   
b=int(input("quantity of commodity="))     sampoo 
i=1                                        sampoo
while i <= b :                             sampoo
    if i>a:                                sampoo
        print("hello")                     sampoo
        break                              sampoo
    print('sampoo')                        hello  (it is printed when a<=7) 
    i+=1                                   thank you for coming
print("thank you for coming")

Gr@Y_orphan_ViLL@in##

While-Schleife

A while loop statement in Java programming language repeatedly executes a target statement as long as a given condition is true. 

Syntax : 
while(Boolean_expression) {
   // Statements
}
Important Ibis

while-Schleife

while loop php
Strange Stork

while-Schleife

while(condition)
{ 
code it here
}
Abhijeet Jha

While-Schleife

while(condition) {
   statement(s);
}
Trevor Ochieng'

Ähnliche Antworten wie “while-Schleife”

Fragen ähnlich wie “while-Schleife”

Weitere verwandte Antworten zu “while-Schleife” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen