## Kotlin Program to add two numbers using the secondary constructor

In this program, You will learn how to add two numbers using the secondary constructor in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue Reading Kotlin Program to add two numbers using the secondary constructor

## Kotlin Program to add two numbers using the primary constructor

In this program, You will learn how to add two numbers using the primary constructor in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue Reading Kotlin Program to add two numbers using the primary constructor

## Kotlin Program using secondary constructor

In this program, You will learn how to implement a secondary constructor in Kotlin. constructor() { //constructor } Example: How to implement a secondary constructor in Kotlin. class Test {…

Continue Reading Kotlin Program using secondary constructor

## Kotlin Program using primary constructor

In this program, You will learn how to implement the primary constructor in Kotlin. class Test(var name: String, var sal: Int) { //statement } Example: How to implement primary constructor…

Continue Reading Kotlin Program using primary constructor

## Kotlin Program to check a number is a palindrome or not using class

In this program, You will learn how to check a number is a palindrome or not using the class in Kotlin. Some list of palindrome numbers: 11 22 121 191…

Continue Reading Kotlin Program to check a number is a palindrome or not using class

## Kotlin Program to reverse a number using class and object

In this program, You will learn how to reverse a number using the class and object in Kotlin. 1234 => 4321 8765 => 5678 Example: How to reverse a number…

Continue Reading Kotlin Program to reverse a number using class and object

## Kotlin Program to find factorial of a number using class

In this program, You will learn how to find factorial of a number using class in Kotlin. 3! => 1 * 2 * 3 = 6 4! => 1 *…

Continue Reading Kotlin Program to find factorial of a number using class

## Kotlin Program to add two numbers using class and object

In this program, You will learn how to add two numbers using class and object in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue Reading Kotlin Program to add two numbers using class and object

## Kotlin Program to delete an element in an array

In this program, You will learn how to delete an element in an array in Kotlin. Array list is: 2 3 4 5 6 7 Enter for delete: 4 New…

Continue Reading Kotlin Program to delete an element in an array

## Kotlin Program to insert an element in an array

In this program, You will learn how to insert an element in an array in Kotlin. List is: 1 2 3 4 5 6 Insert item: 44 Insert location: 7…

Continue Reading Kotlin Program to insert an element in an array