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.
CAHomework/Homework 8/ex3.py
2018-11-28 14:06:48 +01:00

12 lines
229 B
Python

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