Skip to content

Comments

Update Calculator.java#487

Open
Kedar-Dev25 wants to merge 1 commit intokishanrajput23:mainfrom
Kedar-Dev25:patch-1
Open

Update Calculator.java#487
Kedar-Dev25 wants to merge 1 commit intokishanrajput23:mainfrom
Kedar-Dev25:patch-1

Conversation

@Kedar-Dev25
Copy link

This PR improves the Calculator.java by:

  • Adding support for the 'abs' operation in single-number calculations
  • Preventing crashes when dividing by zero
  • Cleaning up repeated code and adding minor readability improvements

@Kedar-Dev25
Copy link
Author

First beginner-level contribution: added 'abs' operation and divide-by-zero check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant