Tutorialwing

  • Courses
  • Contact Us
  • Articles

7. Kotlin Examples Archive

Kotlin Program to Check if Number is Armstrong Number

Kotlin Program to Check if Number is Armstrong Number

Learn about Kotlin Program to Check if Number is Armstrong Number or not. Visit post to know more...
Kotlin Program to Find nth Armstrong Number

Kotlin Program to Find nth Armstrong Number

Learn about Kotlin Program to Find nth Armstrong Number using program to check if number is armstrong number or not. Visit post to know more...
Kotlin Program to Print Armstrong Number Between Interval

Kotlin Program to Print Armstrong Number Between Interval

Learn about Kotlin Program to Print Armstrong Number Between Interval a and b (a < b). Visit post to know more...
Kotlin Program to Reverse String With Example

Kotlin Program to Reverse String With Example

Learn how to reverse a given string in Kotlin with example. Visit post to know more...
Kotlin Program to Display Factors of Given Number

Kotlin Program to Display Factors of Given Number

We learn about Kotlin Program to Display Factors of Given Number. Visit post to know more...
Kotlin Program to Express Number as Sum of Two Prime Numbers

Kotlin Program to Express Number as Sum of Two Prime Numbers

Learn about Kotlin program to express a number as sum of two prime numbers with example. We learn about goldbach's Conjecture
Kotlin Program to Print Prime Numbers Between Interval

Kotlin Program to Print Prime Numbers Between Interval

Learn about Kotlin Program to Print Prime Numbers between Interval a and b. We check for each value between a and b to check for prime number, then print it. Visit post to know more...
Kotlin Program to Check Whether Number is Prime

Kotlin Program to Check Whether Number is Prime

Learn about Kotlin Program to check whether number is prime or not. We use a for loop till square root of a number to check whether given number is prime or not. Visit post to know more...
Kotlin Program to Check Number is Palindrome or Not

Kotlin Program to Check Number is Palindrome or Not

Learn about Kotlin Program to check whether number is palindrome or not. we reverse the number and compare it with original number to check it. Visit post to know more..
Kotlin Program to Calculate Power of Number With Example

Kotlin Program to Calculate Power of Number With Example

Learn about Kotlin Program to Calculate Power of Number with example, using for loop, while loop, pow function. Visit post to know more....
  • 1
  • 2
  • 3
  • 4
  • 5
Kotlin
1. Kotlin Basic
Introduction
Create Project (Eclipse)
Create Project (IntelliJ IDEA)
Variables
Constants
Input / Output
Operators
Expression / Statement
Comment
Data Types
Number
Character
String
Array
Enum
Type Conversion
Create Kotlin Array Given Size
Create Array From Given Elements
Add New Element in Array
2. Kotlin Function
Function Introduction
Arguments in Function
Infix Function
Recursive Function
Tail Recursive Function
3. Kotlin Control Flow
If Else Block
For Loop
When Block
While Loop
Do While Loop
Return in kotlin
Break In Kotlin
Labeled Break
Continue In Kotlin
Labeled Continue
4. Kotlin Exception
Exception
try catch Block
Multiple Catch Block
Nested try catch Block
finally Block
throw Exception
throws Annotation
Custom Exception
5. Kotlin Class & Object
Interface
Classes in Kotlin
7. Kotlin Examples
Add Two Integers
Swap Two Numbers
Number Odd / Even Check
Find ASCII Value Character
Multiply Two Floating Point Numbers
Find Character of ASCII Value
Find Quotient And Remainder
Read and Print Integer
Read And Print String
Multiply Integer and Floating Point Number
Find Largest Among Three Numbers
Check Vowel or Consonant
Check Leap Year For Given Year
Check Positive or Negative
Find Sum of N Natural Numbers
Find Factorial of Given Number
Check If Character is Alphabet or Not
Find Roots Of Quadratic Equation
Generate Multiplication Table
Generate Fibonacci series
Find GCD or HCF (1)
Print Prime Factors of Given Number
GCD using Prime Factors
Find LCM (1)
Find LCM Using Prime Factors
Find LCM Using GCD
Display Alphabets
Count Digits of Number
Reverse a Given Number
Calculate Power of Number
Check Number Palindrome or Not
Check Prime Number or Not
Print Prime Number Between Interval
Express Number as Sum of Two Primes
Display All Factors of Number
Reverse a Given String
Check Armstrong Number
Find nth Armstrong Number
Print Armstrong Number Between Interval
Convert Binary to Decimal
Convert Large Binary Number to Decimal
Convert Decimal Number to Binary Number
Convert Octal Number to Decimal Number
Convert Decimal Number to Octal Number
Convert Octal to Binary
Convert HexaDecimal to Decimal
Convert HexaDecimal Number to Binary
Traverse Array Elements
Cyclically rotate array by one

LEARN

  • Android With Kotlin
  • Android With Java
  • Kotlin
  • Python
  • C
  • Math
  • Database
  • Computer Networks
  • Operating System

Recent Articles

  • Tips and Tricks for C# Code Optimization
  • Python Program to Find Sum of N Natural Numbers using Recursion
  • Python Program to Find Sum of N Natural Numbers
  • Python Program to Check if Number is Positive or Negative
  • Python Program to Find if Given Year is Leap Year or Not

QUICK LINKS

  • About Us
  • Contact Us
  • Privacy Policy

JOIN US AT

  • Facebook
  • Twitter
  • Youtube

Newsletter

Loading
Copyright © 2017-22. All Rights Reserved.