Created
July 16, 2018 16:57
-
-
Save saarques/23246db171ec0d7a93a431410f73f142 to your computer and use it in GitHub Desktop.
Solution of a weekly problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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