https://github.com/nikolasiljanovski/devby5for
Algorithm for division by 5.
https://github.com/nikolasiljanovski/devby5for
eclipse github java
Last synced: 2 months ago
JSON representation
Algorithm for division by 5.
- Host: GitHub
- URL: https://github.com/nikolasiljanovski/devby5for
- Owner: NikolaSiljanovski
- License: mit
- Created: 2024-03-25T08:48:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T09:35:44.000Z (over 2 years ago)
- Last Synced: 2025-10-10T20:08:11.824Z (9 months ago)
- Topics: eclipse, github, java
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Divisibility Checker
This Java program checks the divisibility of numbers up to a given input by 5.
## Description
This program takes an integer input from the user and then checks each number from 1 up to the input value. It prints whether each number is divisible by 5 or not. The program consists of a single Java class, `Dev`, with a `main` method that handles the user input and the checking process.
## How to Use
1. Clone the repository or download the `Dev.java` file.
2. Compile the Java file using a Java compiler, for example:
3. Run the compiled Java program:
4. Follow the on-screen instructions to enter an integer value.
## Note
- The program first prints the numbers that are not divisible by 5, then prints those that are divisible by 5.
- If no number up to the input value is divisible by 5, the second part of the output won't be printed.