Skip to content

Instantly share code, notes, and snippets.

@saarques
Created July 16, 2018 16:57
Show Gist options
  • Save saarques/23246db171ec0d7a93a431410f73f142 to your computer and use it in GitHub Desktop.
Save saarques/23246db171ec0d7a93a431410f73f142 to your computer and use it in GitHub Desktop.
Solution of a weekly problem.
n=int(input())
m=int(input())
if m>n:
n,m=m,n
i=1
while m!=0:
print("Number of Square(s) of type ",i,"x",i," : ",n*m)
n,m,i=n-1,m-1,i+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment