This project is a simple Kotlin program that checks whether a given integer is divisible by 3, 5, or both, and prints the corresponding output:
- "FizzBuzz" if the number is divisible by both 3 and 5.
- "Fizz" if the number is only divisible by 3.
- "Buzz" if the number is only divisible by 5.
- No output if the number is not divisible by 3 or 5.
- Prompts the user to enter an integer.
- Checks divisibility conditions using conditional statements.
- Prints the appropriate response.
- Clone the repository.
- Compile e execute o programa usando:
kotlinc main.kt -include-runtime -d main.jar java -jar main.jar
Developed by Gonçalo Gonçalves.