AmitDiwan has Published 11365 Articles

Difference between TensorFlow and Theano

AmitDiwan

AmitDiwan

Updated on 14-Oct-2022 08:17:42

267 Views

In this article, you will understand the significant differences between Tensorflow and Theano libraries.TensorFlowIt is an open-source end-to-end platform to build machine learning applications and was developed by researchers and developers at Google Brain. Let us now see the features of TensorFlow − Ecosystem of powerful add-on libraries − ... Read More

Kotlin Program to Generate Multiplication Table

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:39:41

741 Views

In this article, we will understand how to print a multiplication table. Multiplication table is created by iterating the required input 10 times using a for loop and multiplying the input value with numbers from 1 to 10 in each iteration. Below is a demonstration of the same − Suppose ... Read More

Kotlin Program to Round a Number to n Decimal Places

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:38:07

1K+ Views

In this article, we will understand how to round a number to n decimal places. Rounding of decimal values are done using the ceil() or floor() functions. Below is a demonstration of the same − Suppose our input is Input : 3.1415 The desired output would be − Output ... Read More

Kotlin Program to calculate Simple Interest and Compound Interest

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:33:15

582 Views

In this article, we will input the Principal Amount, Rate and Time (Years) from the user to find the Simple Interest and Compound Interest − Simple Interest − The percentage interest on total principal amount. Returns are less compared to Compound Interest. Compound Interest − The percentage interest charged ... Read More

Kotlin Program to Sort Elements in Lexicographical Order (Dictionary Order)

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:27:29

308 Views

In this article, we will understand how to sort the elements of an array in Lexicographical order in Kotlin. The lexicographical order is a generalization of the alphabetical order of the dictionaries to sequences. Below is a demonstration of the same − Suppose our input is − Alpha Beta Gamma ... Read More

Kotlin Program to Count the Number of Vowels and Consonants in a Sentence

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:25:27

710 Views

In this article, we will understand how to count the vowels and consonants in Kotlin. Alphabets that include the following are called Vowels − ‘a’ ‘e’ ‘i’ ‘o’ ‘u’ All other alphabets are called Consonants. Suppose our input is − Hello, my name is Charlie The desired output ... Read More

Kotlin Program to Calculate the Sum of Natural Numbers

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:15:53

509 Views

In this article, we will understand how to calculate the sum of natural numbers in Kotlin. All possible positive numbers from 1 to infinity are called natural numbers. Below is a demonstration of the same − Suppose our input is 1 and 100 The desired output would be − ... Read More

Kotlin Program to Find all Roots of a Quadratic Equation

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:13:35

602 Views

In this article, we will understand how to calculate the roots of a quadratic equation in Kotlin. A quadratic equation is an algebraic expression of the second degree or in other words, it has two results i.e., real number and an imaginary number. Below is a demonstration of the same ... Read More

Kotlin Program to Find the Largest Among Three Numbers

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:11:20

795 Views

In this article, we will understand how to find the largest of three integers in Kotlin. This is done using a greater than operator (= input2 && input1 >= input3) println("The first value i.e $input1 is the largest number.") else if (input2 >= input1 && input2 >= ... Read More

Kotlin Program to Compute Quotient and Remainder

AmitDiwan

AmitDiwan

Updated on 13-Oct-2022 13:09:04

490 Views

In this article, we will understand how to compute the quotient and reminder in Kotlin. Quotient and Reminder is calculated using two simple formulae − “Quotient = Dividend / Divisor” “Remainder = Dividend % Divisor” Below is a demonstration of the same Suppose our input is − Dividend value: ... Read More

Advertisements