Write a program to obtain 2 numbers $($ $A$ $and$ $B$ $)$ and an arithmetic operator $(C)$ and then design a $calculator$ depending upon the operator entered by the user.
So for example if C="+", you have to sum the two numbers.
If C="-", you have to subtract the two numbers.
If C=" * ", you have to print the product.
If C=" / ", you have to divide the two numbers.

-----Input:-----
- First line will contain the first number $A$.
- Second line will contain the second number $B$.
- Third line will contain the operator $C$, that is to be performed on A and B.

-----Output:-----
Output a single line containing the answer, obtained by, performing the operator on the numbers. Your output will be considered to be correct if the difference between your output and the actual answer is not more than $10^{-6}$.

-----Constraints-----
- $-1000 \leq A \leq 1000$
- $-1000 \leq B \leq 1000$ $and$ $B \neq 0$
- $C$ $can$ $only$ $be$ $one$ $of$ $these$ $4$ $operators$ {" + ", " - ", " * ", " / "}

-----Sample Input:-----
8
2
/

-----Sample Output:-----
4.0

-----Sample Input:-----
5
3
+

-----Sample Output:-----
8

Difficulty: interview

Starter code:

Solutions:
one = int(input())
two = int(input())
element = input()
if element == '/':
 print(one / two)
elif element == '*':
 print(one * two)
elif element == '-':
 print(one - two)
elif element == '+':
 print(one + two)

a=int(input())
b=int(input())
ch=input()
if(ch=="/"):
 print(a/b)
elif(ch=="*"):
 print(a*b)
elif(ch=="-"):
 print(a-b)
else:
 print(a+b)


a=int(input())
b=int(input())
ch=input()
if(ch=="/"):
 print(a/b)
elif(ch=="*"):
 print(a*b)
elif(ch=="-"):
 print(a-b)
else:
 print(a+b)


a=int(input())
b=int(input())
c=input()
if c=='+':
 print(a+b)
elif c=='*':
 print(a*b)
elif c=='-':
 print(a-b)
else:
 print(a/b)

# cook your dish here
x=int(input())
y=int(input())
o=input()
if o=='+':
 print(x+y)
elif o=='-':
 print(x-y)
elif o=='/':
 print(x/y)
elif o=='*':
 print(x*y)

A=int(input())
B=int(input())
c=input()
if c=='+':
 print(A+B)
elif c=='-':
 print(A-B)
elif c=='*':
 print(A*B)
elif c=='/':
 print(A/B)



# cook your dish here
a=int(input())
b=int(input())
c=input()
if(c=='+'):
 print(a+b)
elif(c=='-'):
 print(a-b)
elif(c=='*'):
 print(a*b)
else:
 print(a/b)

# cook your dish here
n=int(input())
k=int(input())
s=input()
if s=='+':
 print(n+k)
elif s=='-':
 print(n-k)
elif s=='*':
 print(n*k)
elif s=='/':
 print(n/k)

a=int(input())
b=int(input())
c=input()
if c=='+':
 print(a+b)
elif c=='-':
 print(a-b)
elif c=='*':
 print(a*b)
elif c=='/':
 print(a/b)


# cook your dish here
def cal (a,b,s):
 if s=='+':
  print(a+b)
 elif s=='-':
  print(a-b)
 elif s=='*':
  print(a*b)
 else:
  print(a/b)
a=int(input())
b=int(input())
c=input()
cal(a,b,c)


a=int(input())
b=int(input())
c=input()
if c=="+":
 print(a+b)
elif c=="-":
 print(a-b)
elif c=="*":
 print(a*b)
elif c=="/":
 print(a/b)


A=int(input())
B=int(input())
C=input()
if C=="+":
 print(A+B)
elif C=="-":
 print(A-B)
elif C=="*":
 print(A*B)
elif C=="/":
 print(A/B)
 


# cook your dish here
x = int(input())
y = int(input())
z = str(input())
if z=='+':
 print(x+y)
elif z=='-':
 print(x-y)
elif z=='*':
 print(x*y)
elif z=='/':
 print(x/y)

a = int(input())
b = int(input())
c = input()
if(c == '+'):
 print(a+b)
elif c == '-':
 print(a - b)
elif c == '*':
 print(a * b)
else:
 print(a/b)

a=int(input())
b=int(input())
c=input()
if c=='+':
 print(a+b)
elif c=='-':
 print(a-b)
elif c=='*':
 print(a*b)
elif c=='/':
 print(a/b) 


# cook your dish here
a=int(input())
b=int(input())
c=input()
if c=="+":
 print(a+b)
elif c=="-":
 print(a-b)
elif c=="*":
 print(a*b)
elif c=="/":
 print(a/b)


a=int(input())
b=int(input())
c=input()
if(c=='+'):
 print(a+b)
elif(c=='-'):
 print(a-b)
elif(c=='/'):
 print(a/b)
elif(c=='*'):
 print(a*b)

a=int(input())
b=int(input())
c=input()
if c=='+':
 print(a+b)
elif c=='-':
 print(a-b)
elif c=='*':
 print(a*b)
elif c=='/':
 print(a/b) 

a=int(input())
b=int(input())
c=str(input())
if(c=="+"):
 print(a+b)
elif(c=="-"):
 print(a-b)
elif(c=="*"):
 print(a*b)
else:
 print(a/b)

# cook your dish here
a=int(input())
b=int(input())
c=input()

if c=='+':
 print(a+b)
elif c=='-':
 print(a-b)
elif c=='*':
 print(a*b)
elif c=='/':
 print(a/b)
 


# cook your dish here
a = int(input())
b = int(input())
p = input()
if p == '+':
 print(a+b)
if p == '-':
 print(a-b)
if p == '*':
 print(a*b)
if p == '/':
 print(a/b)

n1=int(input())
n2=int(input())
c=input()
if(c=="+"):
 print(n1+n2)
elif(c=="-"):
 print(n1-n2)
elif(c=="*"):
 print(n1*n2)
else:
 print(n1/n2)


# cook your dish here
a=int(input())
b=int(input())
c=input()
if c=="+":
 print(a+b)
elif c=="-":
 print(a-b)
elif c=="*":
 print(a*b)
else:
 d=a/b
 print("%.6f"%d)

# cook your dish here
a=int(input())
b=int(input())
op=input()

if op=='+':
 res=a+b
 print(float(res))
if op=='-':
 res=a-b
 print(float(res))
if op=='*':
 res=a*b 
 print(float(res))
if op=='/':
 res=a/b 
 print(float(res))