Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FizzBuzz Checker in Kotlin

Description

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.

Function Structure

Main Function

  • Prompts the user to enter an integer.
  • Checks divisibility conditions using conditional statements.
  • Prints the appropriate response.

How to Use

  1. Clone the repository.
  2. Compile e execute o programa usando:
    kotlinc main.kt -include-runtime -d main.jar
    java -jar main.jar
    

Author

Developed by Gonçalo Gonçalves.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages