integer i = 0,2
while (i<2)
{
j = 0;
while (j<= 3*i)
{
print)
print blank space
j =j +3
}
print end-of-line //takes the cursor to the next line
Answers
Answered by
8
Answer:
hope helpful to you ❤
Attachments:
Answered by
0
Output
0
0 3
Python Code
Integer i = 0,
j while ( i < 2 )
{
j = 0;
while ( j <= 3*i )
{
print j
print blank space
j = j + 3
}
print end-of-line \takes the cursor to the next line
i = i + 1
}
- In addition to the newly introduced while statement, Python also employs the standard flow control constructs from other languages, albeit with some modifications.
- When creating a conditional loop in Python, the while and for keywords are used to repeatedly execute a block of statements until the desired boolean expression is true.
- The while keyword in Python causes a block to begin with a larger indent and is followed by a conditional statement. Statements in this block must be repeated many times. The body of the loop is the common name for such a block. Until the condition evaluates to True, the body will continue to operate. The software will break out of the loop if and when it turns out to be False. The while loop is demonstrated in the example below.
#SPJ2
Similar questions
Chemistry,
1 month ago
English,
1 month ago
Economy,
3 months ago
English,
3 months ago
CBSE BOARD X,
10 months ago