Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- equ = 1
- var = 2
- varleft = 1
- var1 = 1
- var2 = 1
- var3 = 1
- num1 = 1
- num2 = 1
- var21 = 1
- var22 = 1
- var23 = 1
- num21 = 1
- num22 = 1
- leftconfig = variableintegervariable
- op1 = 1
- plus = add
- times = multiply
- minus = subtract
- divide = divide
- ans = 1
- fans = 1
- print ("Welcome to King's Algebra Calculator /nHow many equations?")
- equ = read()
- print(How many variables?")
- var = read()
- if var == (1) then
- print("how many variables are on the left side of the equals sign?")
- varleft = read()
- if varleft == (1) then
- print("what is the configuration of integers of variables? example: variablevariableinteger")
- leftconfig = read()
- if leftconfig == "variable integer" then
- print("what is the integer?"
- num1 = read()
- print("what is the operation between them? HINT: spell it out")
- op1 = read()
- print("what number is on the right?")
- num2 = read()
- if op1 == (plus)then
- num2-num1 = ans
- if op1 == (minus)then
- num1+num2 = ans
- if op1 == (times)then
- num2\num1= ans
- if op1 == (divide)then
- num2*num1=ans
- ans/var1=fans
- print(fans)
- if varleft == (0) then
- print("what number is on this side?")
- num1= read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement