Advertisement
pacho_the_python

Untitled

Oct 25th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. num1 = int(input())
  2. num2 = int(input())
  3. counter = 0
  4. board = "-"
  5. for x in range(1, num1 + 1):
  6.     for y in range(1, num2 + 1):
  7.         counter += 1
  8.         if counter > y:
  9.             print()
  10.             counter = 0
  11.  
  12.         print(board, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement