Computer Science, asked by vishesh1862, 8 months ago

Rewrite the following code snippet using a while loop:
for k in range(11,0,-1):
print(10,'x',k,'=,10*k)​

Answers

Answered by prashith38
1

Answer:

sorry I cant understand

Explanation:

sorry sorry sorry as I am so sorry

Answered by ParvezShere
0

While loop:

  • With the while loop we can execute a set of statements as long as a condition is true.
  • The syntax of a while loop in C programming language is −

       while(condition) {

       statement(s);   }

  • Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and true is any nonzero value. The loop iterates while the condition is true.
  • When the condition becomes false, the program control passes to the line immediately following the loop.

Rewriting the given code snippet using a while loop:

int k = 11;

while(k>0) {

print(10,'x',k,'=,10*k)​  

i=i-1; }

#SPJ3

Similar questions