Ayush Gupta has Published 541 Articles

Program to find first N Iccanobif Numbers in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:33:15

68 Views

In this tutorial, we will be discussing a program to find N lccanobif numbers.For this we will be provided with an integer. Our task is to find the lccanobif number at that position. They are similar to the fibonacci number except the fact that we add the previous two numbers ... Read More

Program to find equation of a plane passing through 3 points in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:29:23

291 Views

In this tutorial, we will be discussing a program to find equation of a plane passing through 3 points.For this we will be provided with 3 points. Our task is to find the equation of the plane consisting of or passing through those three given points.Example Live Demo#include #include #include ... Read More

Program to find Cullen Number in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:27:30

118 Views

In this tutorial, we will be discussing a program to find Cullen Number.For this we will be provided with an integer. Our task is to find the cullen number at that position using the formula −2n* n + 1Example Live Demo#include using namespace std; //finding the nth cullen number unsigned ... Read More

Program to find covariance in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:25:14

537 Views

In this tutorial, we will be discussing a program to find covariance.For this we will be provided with two sets of random variables. Our task is to calculate their covariance i.e, the measure of how much those two values differ together.Example Live Demo#include using namespace std; //function to find mean float ... Read More

Program to find count of numbers having odd number of divisors in given range in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:22:36

268 Views

In this tutorial, we will be discussing a program to find the count of numbers having odd number of divisors in a given range.For this we will be provided with the upper and lower limits of the range. Our task is to calculate and count the number of values having ... Read More

Program to find correlation coefficient in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:20:26

2K+ Views

In this tutorial, we will be discussing a program to find correlation coefficient.For this we will be provided with two arrays. Our task is to find the correlation coefficient denoting the strength of the relation between the given values.Example Live Demo#include using namespace std; //function returning correlation coefficient float find_coefficient(int X[], ... Read More

Program to find compound interest in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:17:09

236 Views

In this tutorial, we will be discussing a program to find compound interest.Compound interest is the interest by adding the current interest to the principal sum and then calculating the interest on the updated amount.Example Live Demo#include using namespace std; int main(){    double principle = 10000, rate = 10.25, ... Read More

Queries for maximum difference between prime numbers in given ranges in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 07:50:10

333 Views

In this problem, we are given Q queries that consist of two values L and R. Our task is to create a program to solve Queries for maximum difference between prime numbers in given ranges in C++.Problem description: Here, in each querry, we are given two values L and R. ... Read More

Queries for decimal values of subarrays of a binary array in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 07:48:03

73 Views

In this problem, we are given a binary array bin[] and Q queries each consists of two values L and R. Our task is to create a program to solve queries for decimal values of subarrays of a binary array in C++.Problem description − Here to solve each query, we ... Read More

Queries for frequencies of characters in substrings in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 07:46:24

115 Views

In this problem, we are given a string. And Q queries each has two integers l and r and character ch. our task is to create a program to solve the queries for frequencies of characters in substrings in C++.Problem description: Here for each querry, we will find the frequency ... Read More

Advertisements