Ayush Gupta has Published 527 Articles

Program to find root of an equations using secant method in C++

Ayush Gupta

Ayush Gupta

Updated on 19-May-2020 11:51:15

1K+ Views

In this tutorial, we will be discussing a program to find the root of an equation using secant method.For this we will be provided with an equation. Our task is to find the roots of that equation using the iterative secant method.Example Live Demo#include using namespace std; float f(float x) ... Read More

Program to find Prime Numbers Between given Interval in C++

Ayush Gupta

Ayush Gupta

Updated on 19-May-2020 11:43:27

356 Views

In this tutorial, we will be discussing a program to find prime numbers between given intervals.For this we would be provided with two integers. Our task is to find the prime numbers in that particular range.Example Live Demo#include using namespace std; int main() {    int a, b, i, j, ... Read More

Program to find parity in C++

Ayush Gupta

Ayush Gupta

Updated on 19-May-2020 11:38:59

451 Views

In this tutorial, we will be discussing a program to find parity.For this we will be provided with a number. Our task is to find its parity i.e count of whether the number of ones are odd or even.Example Live Demo# include # define bool int using namespace std; //finding the ... Read More

Program to find N-th term of series 3, 12, 29, 54, 86, 128, 177, 234, ….. in C++

Ayush Gupta

Ayush Gupta

Updated on 15-May-2020 13:18:32

126 Views

In this tutorial, we will be discussing a program to find N-th term of series 3, 12, 29, 54, 86, 128, 177, 234, …..For this we will be provided with a number. Our task is to find the term for the given series at that particular position.Example Live Demo#include #include ... Read More

Program to find N-th term of series 1, 6, 17, 34, 56, 86, 121, 162, …in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 12:28:24

155 Views

In this tutorial, we will be discussing a program to find N-th term of series 1, 6, 17, 34, 56, 86, 121, 162, …For this, we will be provided with a number. Our task is to find the term for the given series at that particular position.Example Live Demo#include #include ... Read More

Program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 12:25:49

193 Views

In this tutorial, we will be discussing a program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...For this, we will be provided with a number. Our task is to find the term for the given series at that particular position.Example Live Demo#include #include ... Read More

Program to find N-th term of series 0, 7, 8, 33, 51, 75, 102, 133...in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 12:24:15

137 Views

In this tutorial, we will be discussing a program to find N-th term of series 0, 7, 8, 33, 51, 75, 102, 133...For this, we will be provided with a number. Our task is to find the term for the given series at that particular position.Example Live Demo#include #include ... Read More

Program to find largest element in an array in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 07:39:16

524 Views

In this tutorial, we will be discussing a program to find the largest element in an array.For this, we will be provided with an array. Our task is to find the largest number from the elements inside the array.Example Live Demo#include using namespace std; //finding largest integer int largest(int arr[], ... Read More

Program to find if a character is vowel or Consonant in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 07:35:56

268 Views

In this tutorial, we will be discussing a program to find if a character is a vowel or consonant.For this, we will be provided with a character. Our task is to print out to the user whether the provided character is a vowel or a consonant.Example Live Demo#include using namespace ... Read More

Program to find HCF iteratively in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 07:21:14

279 Views

In this tutorial, we will be discussing a program to find HCF iteratively.For this, we will be provided with two numbers. Our task is to calculate the HCF of the given numbers using an iterative function.Example Live Demo#include using namespace std; int get_HCF(int a, int b){    while (a != ... Read More

Advertisements