Not able to operate more than two values

As you everyone knows what i am making is a calculator
please help me as the calculator can only count two values.
if the third or more values are entered then the result comes only of the first two values
example
if , 4+5*6+5 typed , the answer would be 9
link for project Thunkable
@muneer

1 Like

Please stop spamming the forum with multiple topics about the same thing. It’s disrespectful to the users who waste time clicking on duplicate topics.

1 Like

You need to show your work so others can comment and give ideas.

Please show what you have tried.

about the last day’s calculator
if more than two values are operated , then only the first two values gets operated
link Thunkable

I know this because you mentioned it in, maybe 4, different posts.

What have you tried to solve this issue?
Show the codes you tried to solve it so that others can give you advises.

See this demo
https://x.thunkable.com/projectPage/622f0aad2b247a001179573e

Sample output
image

the blocksi nside seem to be capable of computing algebraic expressions - i bet it could be very useful in a nerdle-like puzzle written in thunkable!

after you get the equation, just pass it through these blocks!

2 Likes

thank you so much but can you add one more operator that is ^ (exponent
so it will be more good @muneer

1 Like

Screenshot 2022-03-16 123447
where are those initialize variable block of this variables

1 Like

nor these variables have any set variable block.
i have implemented your code in my calculator project , the output was 0 .
link for my project : Thunkable
:slightly_frowning_face: :frowning_face: :crying_cat_face: :sob:

1 Like

These are Function parameters and will only work inside the function. These variables are automatically initialized by the function itself.
image

You can add it yourself. I added it in my project.

1 Like

Looking at your code, I immediately see this

  • These blocks are resetting the same variable. Why?
    image

  • These variables should be deleted
    image

I have not tested the code but you would need to correct it before it can be tested.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.