Articles on Trending Technologies

Technical articles with clear explanations and examples

Haskell program to find lcm of two numbers

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 27-Oct-2022 553 Views

This tutorial will discuss writing a program to find the LCM of two numbers in the Haskell Programming Language. Haskell is a functional programming language. LCM of two numbers is the least common multiple for that two numbers i.e smallest number that is divided by both numbers. In this tutorial, we discuss five different ways to implement a program to find the LCM of two numbers. Using inbuilt function lcm. Computing LCM using list comprehension. Computing LCM using a recursive function. Computing LCM using the HCF (Highest Common Factor) function. Algorithm steps Take the two integers as ...

Read More

Haskell program to add binary strings

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 27-Oct-2022 559 Views

This tutorial will discuss writing a program to add binary Strings in Haskell Programming Language. The computations in Haskell are Mathematical functions. Binary Strings represent a number in binary form but with String data type. Example: 5 is described as “0101”. Algorithmic steps Take Binary Strings as input. Implement the logic for adding binary Strings Print the resultant Binary String. Program to add Binary Strings We break the program into simpler functions Syntax Importing essential Packages/Modules import Data.Char Data.Char is a useful module for having functions to type cast Character to Integer and Integer to ...

Read More

Haskell program to display all prime numbers from 1 to n

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 27-Oct-2022 2K+ Views

This tutorial will discuss writing a program to display all prime numbers from 1 to N in Haskell Programming Language. Haskell is a declarative, strongly typed, and functional language. The computations in Haskell are mathematical functions. A prime number is one that must have two positive factors 1 and the number itself. Example 2, 3, 5, 7, .. Note 1 is not a prime number because it has only one factor. Algorithm steps Implementing a function to check whether a number is prime. Implementing a function to generate all prime in a range. Display the prime numbers. Program to ...

Read More

Haskell Program to Check whether the input number is a Neon Number

Potti Chandra Sekhar sai
Potti Chandra Sekhar sai
Updated on 27-Oct-2022 399 Views

This tutorial will discuss writing a program to check whether the input number is a Neon Number in Haskell Programming Language. The computations in Haskell are mathematical functions. A neon Number is a number that satisfies the property: number is equal to the sum of the digits of its square. Example: 9 is a neon number because the sum of the digits of its square “81” (8+1) is equal to the number 9. In this Tutorial, we will discuss Program to check whether the number is a Neon number. Program to print neon numbers in a range in an ...

Read More

Is Blockchain comparable to ‘the internet’?

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 380 Views

In recent years, there has been a lot of discussion and conjecture about the Internet's future. The proliferation of social media and the emergence of virtual worlds and immersive experiences have contributed to the Internet's ubiquity as a medium for communication and business. In addition, the growth of Blockchain signals a significant change coming to the Internet. However, the Internet has seen other changes before. The Internet has undergone two essential evolutions since it first became widely used, and a third is soon to follow. These changes have affected the entire world, altering how people live, work, and use the ...

Read More

How to pay with Cryptocurrencies?

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 290 Views

Bitcoin, Ethereum, and other cryptocurrencies were first designed to make anonymous online transactions. The media and the financial industry, preoccupied with price fluctuations, tend to overlook this factor. Knowing how to pay with bitcoin is more crucial than knowing the price, given the currency's rising popularity and widespread use. In the past, transmitting bitcoin required entering code onto a computer's command line. In the past, transferring and receiving cryptocurrency was a complicated procedure. Still, now it's as easy as using a banking app. The specifics of how you begin the payment depend on the program you use, but generally, this ...

Read More

How to invest in crypto without buying crypto?

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 277 Views

Here we'll talk about how we can invest in crypto without buying crypto. We will also talk about the benefits of doing so. There are 5 ways to buy Crypto without buying crypto Bitcoin futures ETFs In the present age, every one of the financial backers is searching for a simple method for purchasing crypto, a trade exchange store that claims bitcoin (very much like the ETFs that hold gold and silver) appears to be an optimal arrangement. Be that as it may, the Protections and Trade Commission has so far declined to allow this sort of item, ...

Read More

How to find new crypto coins?

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 333 Views

Introduction Cryptocurrency is the most happening field in the world of digitalisation. It can be classified into coins and tokens based on their respective features used for various purchases, transactions and exchanges on the centralised and decentralised platforms. There are more than 21, 000 types of coins and tokens in the market currently in demand. You can trade them and can also invest in them. All of them are important but hold different values in the market. It requires updating and knowledge to learn which coin is performing better. It is an evolving field and allows users to explore new ...

Read More

CDs VS Crypto

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 469 Views

Introduction If you have money to invest, you have several options at your disposal. There are many high-risk, high-reward investment options. Some are somewhat safe, but you won't make very much money. Certificates of deposit and cryptocurrencies represent the two ends of this continuum (CDs). Although investing in cryptocurrencies has a very high risk, they might pay out handsomely if you're lucky. Contrarily, CDs are among the safest investments since they guarantee a certain return on your money. The downside of this return is that it will be lower than most other investment kinds. CDs and cryptocurrencies may make excellent ...

Read More

Can you really make money with cryptocurrencies?

Riddhi Sultania
Riddhi Sultania
Updated on 26-Oct-2022 314 Views

Introduction Cryptocurrency is one of the most emerging fields in the digital world. As a result, many people consider it an excellent opportunity to establish their career. It is not a wrong thing to think of, though, looking at the rising graph it has in the current times. Besides just being used for carrying out various kinds of digital transactions and exchanges, cryptocurrency can be used to earn money. Many people do this as their part-time job, and many have made it a full-time profession. If you are thinking of making money while working with cryptocurrency, there are specific ways ...

Read More
Showing 30621–30630 of 61,248 articles
Advertisements