c

C program to print the multiplication table using do...while loop

3 different ways in C to print the multiplication table. We will learn how to print the multiplication table using do...while loop, print up to a given limit or by using a separate function.

Read
c

3 different C programs to print an inverted Pyramid pattern

Learn how to print an inverted pyramid in three different ways in C. We will use for loops, while loops and a separate function to print the pattern with star.

Read
c

3 different C programs to print the grade of a student

Learn how to print the grade of a student in 3 different ways. We will learn how to use if-else statements, a separate function and macros to print the grade of a student.

Read
c

3 different C programs to print odd numbers between 1 to 100

3 different c programs to print the odd numbers between 1 to 100. We will learn how to use for loop, while loop and a different function to print all odd numbers between 1 to 100.

Read
kotlin

2 different Kotlin programs to find the root of quadratic equation

Learn how to find the roots of a quadratic equation in Kotlin in two different ways. We will use if-else conditions and when block to find the roots with user input values.

Read
kotlin

2 different ways to use Kotlin enum with string values

Learn how to use Kotlin enum with string values. We will learn two different ways how to create Kotlin enum from string values and how to search for Kotlin enum by string value.

Read
kotlin

Introduction to Kotlin string interpolation with examples

Learn what is interpolation of string in Kotlin with examples. We will learn how to use Kotlin interpolation with different types of variables and with functions.

Read
kotlin

How to convert a string to byte array in Kotlin

How to convert a string to byte array in Kotlin with examples. We can use the toByteArray method to convert a string to byte array. Learn how to use the toByteArray method with examples.

Read
kotlin

3 different ways to convert a byte array to string in Kotlin

3 ways to convert a byte array to string in Kotlin. This post will show you how to convert a byte array to string with UTF-8 encoding or a different encoding.

Read
kotlin

5 different examples to split a string in Kotlin

Different Kotlin examples to split a string. Learn how to split string with single delimiter, multiple delimiters, ignoring character case, with limit and with a regular expression.

Read