17 ms·
It seems buggy, typed numbers a = 18014398509481984, b = 1, and c = 1 and getting result "the sum of all inputs is 18014398509481984"
by scott31 6y ago
It seems buggy, typed numbers a = 18014398509481984, b = 1, and c = 1 and getting result "the sum of all inputs is 18014398509481984"
- TeddyBones 6y agoI wouldn't say buggy, and definitely not to a beginner writing a program like this. What you're seeing is a limitation of javascript. Big numbers need to use BigInt.