Dot Shooter

cid_70

This game is called Dot Shooter and the purpose is the black ball to hit the red ball as many times as you can if you miss the red ball you lose a point, and the background makes it a more challenging game to play but overall is very enjoyable.

Lab 3

inputStr = input (“Input a number: “)
number= int(inputStr)
if number<=0:
print “You entered a negative number”
else:
print (number)
while number!=1:
if number%2==0:
number=number//2
print (number)
else:
number=(number*3)+1
print (number)

print (“End”)