Ayush Gupta has Published 541 Articles

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

61 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

84 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

92 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

83 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

347 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

158 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

207 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

Program to find N-th term of series 3, 5, 33, 35, 53… in C++

Ayush Gupta

Ayush Gupta

Updated on 04-May-2020 07:19:07

100 Views

In this tutorial, we will be discussing a program to find N-th term of series 3, 5, 33, 35, 53…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 using namespace std; //finding the ... Read More

Program to find Circumference of a Circle in C++

Ayush Gupta

Ayush Gupta

Updated on 14-Apr-2020 12:23:00

302 Views

In this tutorial, we will be discussing a program to find circumference of a circle.For this we will be provided with the radius of the circle. Our task is to calculate and print the circumference of that circle.Example Live Demo#include using namespace std; #define PI 3.1415 double circumference(double r){    double ... Read More

Program to find Circumcenter of a Triangle in C++

Ayush Gupta

Ayush Gupta

Updated on 14-Apr-2020 12:22:06

356 Views

In this tutorial, we will be discussing a program to find the circumcenter of a triangle.For this we will be provided with three noncollinear points. Our task is to find the circumcenter of the triangle formed by those points.Example Live Demo#include #include using namespace std; //storing X and Y ... Read More

Advertisements