Share your repls and programming experiences

← Back to all posts
Math machine!
AryyanVineeth (18)

Hey guys! This is a math machine you can use as a calculator! Please give this a good reply. Thanks!

Comments
hotnewtop
HuhBoi (1)

Nice! I'm making a calculator to but in python.

AryyanVineeth (18)

@HuhBoi Thats cool! Thanks for the good reply!

EekulD (15)

@HuhBoi I've made a few in Python as well

AntonioOng (0)

Your calculator is great and i love it (i've done a few math assignment s with it lmao)! But i have one smol suggestion: maybe you can add a feature that allows you to do another calculation without clicking the run button again. For example, i do 1+1 and take the result and multiply it by 10.

EekulD (15)

@AntonioOng He could put it in a function, then put that function into a while loop depending if i is equal to 1 or something, a variable that doesn't change

EekulD (15)

It dun't work bruv

EekulD (15)

@EekulD
Exception in thread "main" java.util.InputMismatchException
at java.base/java.util.Scanner.throwFor(Scanner.java:939)
at java.base/java.util.Scanner.next(Scanner.java:1594)
at java.base/java.util.Scanner.nextInt(Scanner.java:2258)
at java.base/java.util.Scanner.nextInt(Scanner.java:2212)
at Main.main(Main.java:31)

AryyanVineeth (18)

@EekulD Worked for me. I think you need to try again.

EekulD (15)

@AryyanVineeth Works fine now, did you fix it?

AryyanVineeth (18)

@EekulD Nope. Mabye the error was something to do with repl mabye.