Shubham Padhi’s Post

💻 Exploring Java Programming: Strong Number Check 💡 Today, I practiced writing a Java program to check whether a number is a Strong Number — a number whose sum of the factorials of digits equals the number itself. For example: 👉 145 = 1! + 4! + 5! = 145 ✅ 👉 565 ≠ 5! + 6! + 5! ❌ Here’s a quick snippet from my code (shown below 👇): - Used a "while" loop for digit extraction - Calculated factorial using a nested "for" loop - Compared the final sum to the original number 🧠 Output: Enter a number to check: 145 145 is a strong number Always exciting to see how logic and math combine beautifully in programming! #Java #Coding #Programming #Learning #Engineering #StrongNumber #DeveloperJourney #CodeLogic

  • text

To view or add a comment, sign in

Explore content categories