Skip to content

Instantly share code, notes, and snippets.

View saarques's full-sized avatar
🛌
Sleeping is a default case to my switch statement.

Sarques saarques

🛌
Sleeping is a default case to my switch statement.
View GitHub Profile
@saarques
saarques / sq(s)_in_rect.py
Created July 16, 2018 16:57
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