Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
vhegde4785yBut he forgot to create for -ve number , so sad it would have increased 20000+ line more 😎
-
Hahahahahaha pathetic! I can do this in 10k lines or less by putting "if" and "print" on the same line! Developers these days
-
@LrdShaper I challenge you to do it with the ternary operator :D
System.out.println(num1 == 0 ? (sign == '+' ? (num2 == 0 ? 0 : num2 == 1 ? 1 : num2 == 2 ? 2 : ....);
Related Rants
This guy's calculator program in python has 20000 + lines of code
Link: https://github.com/AceLewis/...
joke/meme
coding
github
python
development
python3
code
codinglife
programmer