Computer Science, asked by muskanagrawal5180, 10 months ago

What is output?
For a in range (2,7):
For b in range (1,a):
Print ('#',end=' ')
Print ( )

Answers

Answered by kokasathwik2003
5

#                                 (a = 2, therefore b = 1)

# #                              (a = 3, therefore b = 1,2 and # prints twice)

# # #                           (a = 4, therefore b = 1,2,3 and # prints thrice)

# # # #                        (a = 5, therefore b = 1,2,3,4 and # prints four times)

# # # # #                     (a = 6, therefore b = 1,2,3,4,5 and # prints five times)

Similar questions