Ayush Gupta has Published 530 Articles

Program to find Sum of a Series a^1/1! + a^2/2! + a^3/3! + a^4/4! +…….+ a^n/n! in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:48:57

600 Views

In this problem, we are given two numbers a and n. Our task is to create a program to find Sum of a Series a^1/1! + a^2/2! + a^3/3! + a^4/4! +…….+ a^n/n! in C++.Problem description − The problem is to find the sum of the given series using the ... Read More

Program to find sum of elements in a given array in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:47:42

1K+ Views

In this problem, we are given an array arr[] of n integer values. Our task is to create a Program to find sum of elements in a given array in C++.Program Description − For the given array, we will add up all elements and return the sum.Let’s take an example ... Read More

Program to find sum of harmonic series in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:42:44

955 Views

In this problem, we are given three numbers a, d, and n. Our task is to create a program to find sum of harmonic series in C++.Harmonic progression is a series whose inverse will be an arithmetic progression. I.e. if for a harmonic progression A1, A2, A3.. An, there is ... Read More

Program to find sum of prime numbers between 1 to n in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:41:06

4K+ Views

In this problem, we are given a number n. Our task is to create a program to find sum of prime numbers between 1 to n in C++.Prime Numbers are those numbers that have only two factors. They are the number and 1.Let’s take an example to understand the problemInputn ... Read More

Program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:39:13

4K+ Views

In this problem, we are given a number n. Our task is to create a program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n in C++.Code description − Here, we will find the sum of the series 1 + 1/2 + 1/3 ... Read More

Program to find the angles of a quadrilateral in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:31:28

256 Views

In this problem, we are given a value d, which is the common difference of AP. This AP is all the angles of a quadrilateral. Our task is to create a program to find the angles of a quadrilateral in C++.Problem Description − Here, the angles of the quadrilateral are ... Read More

Program to find the Area and Perimeter of a Semicircle in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:30:28

309 Views

In this problem, we are given a value that denotes the radius of a semicircle. Our task is to create a program to find the Area and Perimeter of a Semicircle in C++.SemiCircle is a closed figure that is half of a circle.Let’s take an example to understand the problem, ... Read More

Program to find the Area of a Parallelogram in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 09:03:01

427 Views

In this problem, we are given two values that denote the base and height of a parallelogram. Our task is to create a Program to find the Area of a Parallelogram in C++.Parallelogram is a four side closed figure that has opposite sides equal and parallel to each other.Let’s take ... Read More

Program to find the Break Even Point in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 09:00:07

251 Views

In this problem, we are given the three variables that denote total monthly expenditure (E), selling price (S) of the product, overhead maintenance (M) on each product. Our task is to create a program to find the Break Even Point in C++.Break-Even Point is the total number of products that ... Read More

Program to find the Centroid of the Triangle in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 08:59:03

464 Views

In this problem, we are given a 2D array that denotes coordinates of three vertices of the triangle. Our task is to create a program to find the Centroid of the Triangle in C++.Centroid of a triangle is the point at which the three medians of the triangles intersect.Median of ... Read More

Previous 1 ... 7 8 9 10 11 ... 53 Next
Advertisements