Android Android Kotlin

Addition, Subtraction, Multiplication and Division Program in Android using Kotlin3 min read

This example demonstrates I’ll show you how to Write a program to create a simple calculator in Android Studio sing Kotlin.

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.




Step 2 − Add the following code to res/layout/activity_main.xml.

Step 3 − Add the following code to src/MainActivity.kt

Output:

Leave a Comment