Skip to content

LCM calculator usage example#660

Open
dhruvjanghu wants to merge 1 commit intothoth-tech:mainfrom
dhruvjanghu:usage-examples/least-common-multiple
Open

LCM calculator usage example#660
dhruvjanghu wants to merge 1 commit intothoth-tech:mainfrom
dhruvjanghu:usage-examples/least-common-multiple

Conversation

@dhruvjanghu
Copy link

Description

Added a new usage example for the SplashKit function least_common_multiple.
this example demonstrates calculating of the LCM between 2 numbers that are chosen by the user, have also added 2 default number that will be the numbers at the start of the program and after each time the user resets it. have provided a clear and student friendly demo, easy to understand.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Compiled and ran the program using MSYS2 (skm g++ and skm python).
  • Verified that the window shows Number 1, Number 2, and the calculated LCM.
  • Tested interactive controls (UP/DOWN for Number 1, LEFT/RIGHT for Number 2, R to reset).
  • Verified layout, colors, and fonts display as intended.

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas (minimal, student-friendly)
  • I have made corresponding changes to the documentation (added .txt descriptor)
  • My changes generate no new warnings

If modified config files

  • I have checked the following files for changes:
    • package.json
    • astro.config.mjs
    • netlify.toml
    • docker-compose.yml
    • custom.css

Folders and Files Added/Modified

  • Added:

    • public/usage-examples/utilities/least_common_multiple-1-example.cpp
    • public/usage-examples/utilities/least_common_multiple-1-example.py
    • public/usage-examples/utilities/least_common_multiple-1-example-oop.cs
    • public/usage-examples/utilities/least_common_multiple-1-example-top-level.cs
    • public/usage-examples/utilities/least_common_multiple-1-example.txt
    • public/usage-examples/utilities/least_common_multiple-demo.gif
  • Modified:

    • None

Additional Notes

  • The program provides a clean, interactive demo gif for the least_common_multiple function.
  • User controls and output layout are consistent across C++, Python, and C#.

@netlify
Copy link

netlify bot commented Sep 22, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 843382b
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68d158e31580d500071e162e
😎 Deploy Preview https://deploy-preview-660--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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