Articles on Trending Technologies

Technical articles with clear explanations and examples

Haskell program to print ascii values

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 1K+ Views

In this tutorial, we discuss writing a program to print ASCII values in the Haskell programming language. Haskell is a Declarative, Strongly Typed, and Functional programming language. The computations in Haskell are mathematical functions. ASCII stands for American Standard Code for Information Interchange, used in electronic data transfer and communication. These ASCII values represent characters in electronic devices. These values are used to describe characters and data in digital devices. ASCII is a 7-bit number representing a character. Example: 7-bit binary “1100001” represents character ‘a’ whose ASCII value is 97. In this tutorial, we see two different ways to print ...

Read More

Haskell program to find the largest among three numbers

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 1K+ Views

In this tutorial, we discuss writing a program to find the largest among the three numbers Haskell programming language We are going to learn three different ways to implement programs to find the largest among three numbers in Haskell. Program to find the largest among three numbers using if-else. Program to find the largest among three numbers using function max. Program to find the largest among three numbers using function maximum. Syntax variables in functions returning IO actions can be declared and initialized instantaneously using the “let” keyword. let num=100 The above line loads an Integer value ...

Read More

Haskell program to find all roots of a quadratic equation

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 1K+ Views

In this tutorial, we discuss writing a program to find the largest among the three numbers Haskell programming language. A quadratic equation is a second-degree algebraic equation. Example − a quadratic equation is of the form ax^2 + bx + c, where a, b, and c are constants and x is variable. A quadratic equation has two roots. Algorithm steps Take a quadratic equation as input. Implement the programming logic to compute the roots. Display the roots. Algorithm Logic Take input or initialize values for a, b, and c. As the quadratic expression can be constructed with ...

Read More

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

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 914 Views

In this tutorial, we discuss writing a program to count the number of vowels and consonants in a Sentence in the Haskell programming language. Haskell is a Declarative, Strongly Typed, and Functional programming language. The computations in Haskell are mathematical functions. Vowels are the open sound-producing letters in English literature. The list of vowels in the English alphabet is ‘a’, ’e’, ’i’, ’o’, and ’u’. The other letters are consonants. In this tutorial, we see two different ways to implement the program to count the number of vowels and consonants in Haskell. Implementing the program to count the number ...

Read More

Haskell program to compute quotient and remainder

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 892 Views

In this tutorial, we discuss writing a program to compute the quotient and remainder in Haskell programming language. Quotient and remainder are the quantities obtained as a result of dividing two quantities. Example − quotient and remainder for the division of 31/5 are 6, 1 respectively. The number can be represented as 31 (dividend) = 5(divisor) * 6(quotient) + 1(remainder). In this tutorial, we see four different ways to write a program to compute quotient and remainder. Haskell program to compute the quotient and the remainder using built-in functions div and mod Haskell program to compute the quotient and ...

Read More

Haskell Program to Check if two of the three Boolean variables are true

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 380 Views

In this tutorial, we discuss writing a program to check if two of three Boolean variables are true in the Haskell programming language Boolean variables are the type of variable which hold the boolean value true and false. In this tutorial, we see two different ways to implement a program to check if two of the three boolean values are true Program to check if two of the three boolean values are true in an iterative method. Program to check if two of the three boolean values are true in a recursive method. Algorithm steps Declare or ...

Read More

Haskell program to calculate the sum of natural numbers

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 1K+ Views

In this tutorial, we discuss writing a program to calculate the sum of the natural numbers in the Haskell programming language. Natural numbers are positive integers starting from 1, 2, 3...N In this tutorial, we see different ways to implement a program to compute the sum of natural numbers. Program to compute the sum of the natural numbers using a mathematical formula. Program to compute the sum of the natural numbers using a recursive function. Program to compute the sum of the natural numbers using the list method/function sum. Algorithm steps Declare or take input the range ...

Read More

Haskell Program to Calculate simple interest and compound interest

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 24-Nov-2022 593 Views

In this tutorial, we discuss writing a program to calculate simple and compound interest in the Haskell programming language In this tutorial, we see Program to compute Simple interest. Program to compute Compound interest. Simple interest is an Interest method for an investment, where interest is defined as I = p*t*r/100, where p is the invested amount, t is the quantity of time in years, and r is the interest rate. (per 100). Example − For an invested amount of 1000(p), t= 2 and r =3 the interest is 60. Compound interest is an Interest method for an ...

Read More

Different online Hashtag generators for YouTube

Prachi Gupta
Prachi Gupta
Updated on 23-Nov-2022 676 Views

For their position in search results, right-wing hashtags are vital. Hashtags, like metadata, provide crucial information about your video to YouTube, Google, and anybody who views it. They contain the video's category, topic, and so on. The chance of the audience discovering and viewing your video will be enhanced if you add the appropriate hashtags. Finding the appropriate hashtags for your YouTube video is a challenge. So, you will want to use a YouTube hashtag generator to get there. We have compiled a list of some of the best YouTube hashtag generators we could find in this article, based ...

Read More

How YouTube New Hashtag Showcase Assist in Content Discovery and research?

Prachi Gupta
Prachi Gupta
Updated on 23-Nov-2022 265 Views

YouTube Adds New Hashtag Showcase Pages to Help You Find Content. YouTube has just introduced a new hashtag search facility that displays users a full-page display of YouTube videos, as well as usage statistics, that include the chosen hashtag. Beyond content discovery and research, this update may be used for a variety of purposes. On both desktop and mobile versions of the YouTube app, the new hashtag search display is now available. "Today, anyone looking for a certain hashtag on YouTube will notice a new dedicated page featuring videos solely containing the hashtag, which are organized to keep the greatest ...

Read More
Showing 42481–42490 of 61,297 articles
Advertisements