AmitDiwan has Published 11365 Articles

Kotlin Program to Find the Area of a parallelogram

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:57:02

197 Views

In this article, we will understand how to find the area of a parallelogram. The area of a parallelogram is calculated using the formula by − base * height Below is a demonstration of the same − Suppose our input is − Base: 6 Height: 8 The desired output ... Read More

Kotlin Program to Find the Perimeter of a Circle

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:53:40

370 Views

In this article, we will understand how to find the perimeter of a circle. The perimeter of a circle is calculated using the formula. (2*22*radius)/7 You can also write the above as − 2ℼr The value of ℼ is 22/7 or 3.14. Suppose our input is − Radius ... Read More

Kotlin Program To Find The Area of a Trapezium

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:47:26

156 Views

In this article, we will understand how to find the area of a trapezium. The area of a trapezium is calculated using the formula. (height/2 * (side1 + side2)) Below is a demonstration of the same − Suppose our input is − side1 = 5 side2 = 6 height ... Read More

Kotlin Program to Find Area of Square

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:36:25

531 Views

In this article, we will understand how to find the Area of a Square. The area of a square is calculated using the formula. side*side Below is a demonstration of the same − Suppose our input is − Length of the side : 4 The desired output would ... Read More

Kotlin Program to Calculate the Power of a Number

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:29:27

463 Views

In this article, we will understand how to calculate the power of a number. The calculate the power of a number is calculated using a loop and multiplying it by itself multiple times. Below is a demonstration of the same − Suppose our input is − Number : 4 Exponent ... Read More

Kotlin Program to Reverse a Number

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:25:46

1K+ Views

In this article, we will understand how to print an integer in Kotlin. The reverse of a number is computed using a loop and arithmetic operator % and /. Below is a demonstration of the same − Suppose our input is − The number : 123456 The desired output ... Read More

Kotlin Program to Count Number of Digits in an Integer

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:18:59

547 Views

In this article, we will understand how to count the number of digits in an integer. The digits in an integer are counted using a loop and a counter. Below is a demonstration of the same − Suppose our input is − Number : 15161718 The desired output would ... Read More

Kotlin Program to Display Fibonacci Series

AmitDiwan

AmitDiwan

Updated on 17-Oct-2022 08:16:04

2K+ Views

In this article, we will understand how to find even sum of Fibonacci series till number N. A Fibonacci series is sequence of numbers formed by the sum of its two previous integers. An even Fibonacci series is all the even numbers of the Fibonacci series. A Fibonacci series till ... Read More

How to remove the space between inline/inline-block elements in HTML?

AmitDiwan

AmitDiwan

Updated on 16-Oct-2022 16:52:20

994 Views

We can easily remove the space between inline-block elements. Before moving further, let us first create an HTML document and add inline-block elements with space. Inline-block elements with space We will set the style for inline block element using the display property with value inline-block − nav a { ... Read More

Fuzzy Logic and Probability: The Confusing Terms

AmitDiwan

AmitDiwan

Updated on 14-Oct-2022 11:58:23

2K+ Views

In this article, you will understand the difference between fuzzy logic and probability. Fuzzy logic It is a many-valued logic where the truth value of variables may be a real number between 0 and 1, including 0 and 1. Everything is associated with a degree. It is based on ... Read More

Advertisements