Would appreciate a review on this. The program does work as it is intended to. However I am unsure if there is a more elegant or better way to execute this process with less code.
def main():
print ('This program takes two numbers and multiplies them.')
print ('the result is multiplied by a third number')
print ('entered by the user too')
procedure()
def procedure():
n = float(input('Enter a number: '))
n2 = float (input('Enter a number: '))
value = n * n2
y = value
print value
n3 = float(input('Multiply by: '))
while n3 != '0':
op = n3 * y
y = op
print y
n3 = float(input('Multiply by: '))
main()