## Find Greater Number

fun main() { println(“Enter Two Integer Numbers”)//1 val first = readLine()!!.toInt()//2 val second = readLine()!!.toInt()//3 if(first>second)//4 { println(“First Entered Number…

## Print the Name of Month Based on Entered Number

fun main() { println(“Enter a Number”)//1 val number = readLine()!!.toInt()//2 var monthName = when (number) {//3 1 -> “January” 2…

## Print the Name of Month Based on Entered Number

fun main() { println(“Enter a Number”)//1 val number = readLine()!!.toInt()//2 var dayName = when(number){//3 1-> “Sunday” 2-> “Monday” 3-> “Tuesday”…

## Reverse of Number

fun main() { println(“Enter a Number”)//1 var number = readLine()!!.toInt()//2 var reverse=0//3 val tempNumber = number//4 while (number!=0)//5 { val…

## Palindrome Number

fun main() { println(“Enter a Number”)//1 var number = readLine()!!.toInt()//2 var reverse = 0//3 val tempNumber = number//4 while (number…

## Maximum number of Array

fun main() { println(“Enter the size of Array”)//1 val size = readLine()?.toInt()!!//2 val numbers = IntArray(size)//3 for(i in numbers)//4 {…

## Minimum number of Array

fun main() { println(“Enter the size of Array”)//1 val size = readLine()?.toInt()!!//2 val numbers = IntArray(size)//3 for (i in 0…

## Average of an Array

fun main() { println(“Enter the size of Array”)//1 val size = readLine()?.toInt()!!//2 val numbers = IntArray(size)//3 for(i in 0 until…

## Sum of Array Elements

fun main() { println(“Enter the size of Array”)//1 val size = readLine()?.toInt()!!//2 val numbers = IntArray(size)//3 for(i in 0 until…

## Fibonacci Series

fun main() { println(“Enter a number”)//1 var t2=1//2 var t1=0//3 var nextTerm=0//4 val number = readLine()!!.toInt()//5 if(number<=1)//6 { println(number)//7 }…