Short CalculatorThe worlds Hopefully shortest and most efficient calculator!
UPDATED, FACTORIALS ADDED, and trig functions
This is no ordinary calculator, it takes i
Latest comments view all › Cool, nice to see it working!
Two things though:
Don't choose Java if you're looking to write a short program :)
About the sc.nextLine() fix, I think the best way (the "actual" way, and way that will probably make sure an issue like this doesn't happen again) would be to put an sc.nextLine() after each sc.nextDouble() call. As with before, I'm not 100% sure on this since I'm not an expert on the Java Scanner API, but I'm going to guess that this is what needs to be done to ensure that progra 28462596809170545189064132121198688901480514017027992307941799942744113400037644437729907867577847758158840621423175288300423399401535187390524211613827161748198241998275924182892597878981242531205946599625986706560161572036032397926328736717055741975962099479720346153698119897092611277500484198845410475544642442136573303076703628825803548967461117097369578603670191071512730587281041158640561281165385325968425825995584688146430425589836649317059251717204276597407446133400054194052462303436869154