Computer Science, asked by nrpampati, 7 hours ago

integer num1,num2
input num1,num2
integer k=0, final=num1
//missing
print final

Answers

Answered by anandpreet21
8

Answer:

while(k++<num2)

final+=num1

Answered by Jasleen0599
0

Python Code

integer num1,num2

input num1,num2

integer k=0, final=num1

while(k++<num2)

final+=num1

print final

  • While a condition is true, a set of statements can be carried out using the while loop.
  • Until a specified condition is met, a block of statements will be periodically executed in a Python while loop. And the line in the programme that follows the loop is run when the condition changes to false.
  • The term "indefinite iteration" refers to while loops. Iteration that lasts indefinitely occurs when there is no explicit limit on how many times the loop must run
  • A block of code is considered to consist of all the statements that are followed by the same number of character spaces after a programming construct. The way that Python groups statements is by indentation.
  • When a while loop is run, expr is first tested in a boolean context, and if it returns true, the body of the loop is run. The expression is then verified again, and if it is still true, the body is run once more. This process is repeated until the expression is no longer true.

#SPJ2

Similar questions
Math, 7 hours ago