I just finished writing my first Python program however as soon as i go to run it the window closes. I tried a few fixes found in other threads with no luck. Here is the code, is something in the syntax making it error out? Thanks for the help!
print ('Lets do some math nerd!')
print ('How many problems would you like to solve?')
cycle = int(input())
rep = 0
while cycle < rep;
rep = rep + 1;
print ('What operation would you like to perform?')
print('Press 1 for Addition')
print('Press 2 for Subtraction')
print('Press 3 for Multiplication')
print('Press 4 for Division')
op = int(input())
if op ==1
print ('Enter your first number.')
num1 = int(input())
print ('Enter your second number.')
num2 = int(input())
result = (num1 + num2)
print result
elif op ==2
print ('Enter your first number.')
num1 = int(input())
print ('Enter your second number.')
num2 = int(input())
result = (num1 - num2)
print result
elif op ==3
print ('Enter your first number.')
num1 = int(input())
print ('Enter your second number.')
num2 = int(input())
result = (num1 * num2)
print result
elif op ==4
print ('Enter your first number.')
num1 = int(input())
print ('Enter your second number.')
num2 = int(input())
result = (num1 / num2)
print result
else
print ('ERROR')
print (Please select a number 1 through 4.')
print ('Thanks for using my calculator!')
closeInput = raw_input("Press ENTER to exit")
print "Closing..."