Welcome to my Kotlin Basics Practice repository! This repository contains simple Kotlin programs that I've written to practice and improve my Kotlin programming skills.
- Basic Calculator: A simple calculator program using
if
-else
statements to perform basic arithmetic operations. - (Add descriptions of other files or programs as you add them)
To run any of the Kotlin programs in this repository, you'll need to have the Kotlin compiler installed on your machine. Follow the instructions below to get started:
-
Clone the repository:
git clone https://github.com/Sabbir45ali/Kotlin_practice.git cd Kotlin_practice
-
Navigate to the directory containing the Kotlin file you want to run.
-
Compile the Kotlin file:
kotlinc filename.kt -include-runtime -d filename.jar
-
Run the compiled program:
java -jar filename.jar
To run the basic calculator program:
cd src/main/kotlin
kotlinc Calculator.kt -include-runtime -d Calculator.jar
java -jar Calculator.jar