Ayush Gupta has Published 551 Articles

Program to find slope of a line in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 04:55:12

682 Views

In this problem, we are given the coordinates of two points of a line. Our task is to create a Program to find slope of a line in C++.Problem Description − We will find the slope of the line using the coordinates of two points on the line that are ... Read More

Program to find Smallest and Largest Word in a String in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 04:50:56

3K+ Views

In this problem, we are given string str. Our task is to create a program to find Smallest and Largest Word in a String in C++.Problem Description − Here, we have a string we need to find the word whose length is maximum and minimum out of all words in ... Read More

Program to find Star number in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 04:47:24

81 Views

In this problem, we are given a number n. Our task is to create a program to find Star number in C++.Star Number is a special number that represents a centered hexagram (sixpoint star).Some start numbers are 1, 13, 37, 73, 121.Let’s take an example to understand the problemInputn = ... Read More

Program to find sum of 1 + x/2! + x^2/3! +…+x^n/(n+1)! in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 04:45:55

176 Views

In this problem, we are given two values x and n that corresponds to the given series. Our task is to create a program to find sum of 1 + x/2! + x^2/3! +…+x^n/(n+1)! in C++.Problem description − we need to find the sum of series based on the given ... Read More

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

405 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

756 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

544 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

2K+ 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

3K+ 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

141 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

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