This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
|
def product(n,m):
|
|
temp = 0
|
|
while m != 0:
|
|
if m > 0:
|
|
temp = temp + n
|
|
else:
|
|
temp = temp - n
|
|
if m > 0:
|
|
m = m - 1
|
|
else:
|
|
m = m + 1
|
|
return temp
|