Share your repls and programming experiences

← Back to all posts
My calculator
AlanKolenko (1)

a calculator aaaaaaaaaaa nmust fill this out to 50 characters aaaaaaaaaaaaaaakkkakakakaaaa

kerphloo (6)

There were some funky bits with your script I noticed. Your numbers were saved as strings, not integers, so none of the functions worked. Addition almost worked, but it just appended the two numbers together.

I changed it so it explicitly defined each number as integers, and it works like a charm. I also changed "Chose" to "Choose", and fixed a few formatting things (that I personally preferred) - My fork here