Question: Integers first _ val and second _ val are read from input. The inner for loop executes ( second _ val + 1 ) times
Integers firstval and secondval are read from input. The inner for loop executes secondval times for each iteration of the outer for loop. Complete the outer for loop to execute firstval times.
Ex: If the input is:
then the output is:
Inner loop ran times
firstval intinput
secondval intinput
count
for Your code goes here :
for j in rangesecondval :
count
printfInner loop ran count times'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
