Potti Chandra Sekhar sai has Published 40 Articles

Haskell Program To Perform nCr (r-combinations)

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 12:06:48

277 Views

This tutorial discusses writing a program to perform nCr combinations in the Haskell programming language. The nCr is used to find the number of ways r items can be selected from n items given that order doesn’t matter. The nCr is defined as n! / ( r! (n-r)! ). ... Read More

Haskell Program to Find the Perimeter of a Circle

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 12:00:56

213 Views

This tutorial discusses writing a program to find the perimeter of a circle in the Haskell programming language. The perimeter of the circle is the length of the boundary of the circle. The perimeter of a circle is also called the circumference. The perimeter of a circle is defined as ... Read More

Haskell Program to Find the Area of a Trapezium

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:55:05

74 Views

This tutorial discusses writing a program to print the area of a trapezium in the Haskell programming language. A trapezium is a quadrilateral with one opposite side parallel. The above figure is a trapezium. The length of one of the parallel sides is denoted by a and the other ... Read More

Haskell Program to Find the Area of a Square

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:53:01

299 Views

This tutorial discusses writing a program to print the area of a square in the Haskell programming language. The square is a quadrilateral with all sides of the same length. The area of a square is equal to the square of the size of the side. If the side of ... Read More

Haskell Program to Calculate the Power of a Number

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:41:06

705 Views

This tutorial discusses writing a program to calculate the power of a number in the Haskell programming language. The nth power of a number is the value when the number is multiplied by itself n times. The power of numbers can be expressed in exponential forms “a^n”, a is raised ... Read More

Haskell Program to Find the Surface area and Volume of Cuboid

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:36:41

185 Views

This tutorial discusses writing a program to find the Surface area and volume of a cuboid in the Haskell programming language. A cuboid is a solid shape that has six rectangular faces. A cuboid has three dimensions length, breadth, and height. The surface area of a cuboid is the total ... Read More

Haskell Program to Count Number of Digits in an Integer

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:33:52

837 Views

In this tutorial, we discuss writing a program to count the number of digits in an integer in the Haskell programming language. In this tutorial, we see three ways to implement a program to count digits in Haskell. Program to count the number of digits in an integer. Program ... Read More

Haskell Program to Reverse a Number

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:30:06

543 Views

This tutorial discusses writing a program to reverse a number in the Haskell programming language. In this tutorial, we see two ways to implement a program in Haskell to reverse a number. Program to reverse a number using the list function reverse. Program to reverse a number using a ... Read More

Haskell Program to Find the Area of a parallelogram

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:22:32

176 Views

This tutorial discusses writing a program to print the area of a parallelogram in the Haskell programming language. A parallelogram is a quadrilateral with opposite sides that have the same size and are parallel to each other. In this tutorial, We see three ways to implement Program to ... Read More

Haskell Program to Find the Area of a Rectangle

Potti Chandra Sekhar sai

Potti Chandra Sekhar sai

Updated on 14-Dec-2022 11:16:47

245 Views

This tutorial discusses writing a program to print the area of a rectangle in the Haskell programming language. The rectangle is a quadrilateral with opposite sides having the same length and adjacent sides at right angles. The area of a rectangle is equal to its product of length and breadth. ... Read More

Advertisements