Question: s Integers first_num and second_num are read from input. The inner for loop executes second_num times for each iteration of the outer for loop. Complete
s
Integers first_num and second_num are read from input. The inner for loop executes second_num times for each iteration of the outer for loop. Complete the outer for loop to execute (first_num + 1) times. 2 Ex: If the input is: 3 4 then the output is: Inner loop ran 30 times 1 first_num = int(input()) N second_num = int(input() ) 3 4 count = 0 5 for "'' Your code goes here " "': 6 for j in range(second_num) : 7 count += 1 9 print (f' Inner 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
