Ayush Gupta has Published 541 Articles

C++ program to implement Run Length Encoding using Linked Lists

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 05:52:47

222 Views

In this tutorial, we will be discussing a program to implement Run Length Encoding using Linked Lists.For this we will be given with a linked list. OUr task is too encode the elements of the Linked List using Run Length Encoding.For example, if the elements of the linked list are ... Read More

C++ program to find the rate percentage from compound interest of consecutive years

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:55:38

122 Views

In this tutorial, we will be discussing a program to find the rate percentage from compound interest of the consecutive years.For this, we will be provided with two integers say A and B that are the interests of two consecutive years. Our task is to find the rate of interest ... Read More

C program to find the Roots of Quadratic equation

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:55:12

2K+ Views

In this tutorial, we will be discussing a program to find the roots of the Quadratic equation.Given a quadratic equation of the form ax2 + bx + c. Our task is to find the roots x1 and x2 of the given equation.For this, we are using the deterministic method, in ... Read More

C++ program to find the side of the Octagon inscribed within the square

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:54:48

67 Views

In this tutorial, we will be discussing a program to find the side of the octagon inscribed within a given square.For this, we will be given with the side of a square and our task is to find the side of the largest octagon that can be inscribed in it.Finding ... Read More

C++ program to find the smallest element among three elements

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:54:23

2K+ Views

In this tutorial, we will be discussing a program to find the smallest element among the provided three elements.We will be provided with three elements/ integers and our task is to compare them and find the smallest element/ integer among them.Example#include using namespace std; int main() {    int ... Read More

C++ program to find the Sum of each Row and each Column of a Matrix

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:53:58

2K+ Views

In this tutorial, we will be discussing a program to find the sum of each row and each column for a given matrix.For this, we will be given with a say A*B matrix. Our task is to traverse through all the elements of the matrix and find the sum of ... Read More

C++ program to find the sum of the series (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n)

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:53:33

250 Views

In this tutorial, we will be discussing a program to find the sum of the given series (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n).For this, we will be given with the value of n and our task is to add up every term starting ... Read More

C++ program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + … + n/a^n)

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:53:06

103 Views

In this tutorial, we will be discussing a program to find the sum of the given series (1/a + 2/a^2 + 3/a^3 + … + n/a^n).For this, we will be given with the value of n and our task is to add up every term starting from the first one ... Read More

C++ program to find the sum of the series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:52:42

410 Views

In this tutorial, we will be discussing a program to find the sum of the given series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!.For this, we will be given with the value of n and our task is to add up every term starting from the first one ... Read More

C++ Program to find the sum of the series 23+ 45+ 75+….. upto N terms

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:52:15

151 Views

In this tutorial, we will be discussing a program to find the sum of the given series 23+ 45+ 75+….. upto N terms.For this, we will be given with the value of N and our task is to add up every term starting from the first one to find the ... Read More

Advertisements