calculator
upvote if you feel terrible
calculator
class calc:
def __init__(self,num):
self.num = num
def __add__(self,other):
#inner code
def __mul__(self, other):
#inner code
def __sub__(self, other):
#inner code
def __div__(self,other):
#inner code
# and so on for features
calculator
x = input("first number")
y = input("second number")
z = input("do you want to multiply, minus, divide or add? (x,-,/,+)")
y = int(y)
x = int(x)
if z == "+":
print (x + y)
if z == "/":
print (x / y)
if z == "x":
print (x * y)
if z == "-":
print (x - y)
else:
print("use x,-,/ or + next time!")
calculator
A calculator is a device that helps you calculate math problems.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us