

print("SIMPLE CALCULATOR")
print()



def calc():
  print("1 = ADD")
  print("2 = SUB")
  print("3 = MUL")
  print("4 = DIV")
  print()

  z=(int(input("Enter Your Selection from 1 to 4: ")));
  print()

  x=int(input("Enter the 1st number: "));
  print()

  y=int(input("Enter the 2nd number: "));
  print()


  if z==1:
    result = x+y;
  elif z==2:
    result = x-y;
  elif z==3:
    result = x*y;
  elif z==4:
    result = x/y;

  result = str(result)

  print("THE SOLUTION IS :" +result)


  a = 1
  b = 2

  print()
  c=int(input("IF YOU WANT TO CONTINUE ENTER 1 OR TO QUIT ENTER 0: "))

  print()
  if c==a:
    calc()
  else:
    print("THANKYOU FOR USING MY CALCULATOR")



calc()
