Ayush Gupta has Published 551 Articles

Program to find N-th term of series 9, 23, 45, 75, 113… in C++

Ayush Gupta

Ayush Gupta

Updated on 01-Oct-2020 11:33:07

157 Views

In this problem, we are given an integer n that denotes the nth term of the series. Our task is to create a program to find N-th term of series 9, 23, 45, 75, 113… in C++.Problem Description − Here, we need to find the nth term of the series ... Read More

Program to find number of solutions in Quadratic Equation in C++

Ayush Gupta

Ayush Gupta

Updated on 01-Oct-2020 11:31:26

250 Views

In this problem, we are given a quadratic equation of type ax2 + bx + c, where a, b and c are constants. Our task is to create a program to find number of solutions in Quadratic Equation in C++.Problem Description − Here, we need to find the numbers of ... Read More

Program to find number of squares in a chessboard in C++

Ayush Gupta

Ayush Gupta

Updated on 01-Oct-2020 11:28:51

2K+ Views

In this problem, we are given the size of a chessboard. Our task is to create a program to find number of squares in a chessboard in C++.Problem Description − To find the number of squares in a chessboard. We will have to calculate all the combinations of the square ... Read More

Program to find out the data type of user input in C++

Ayush Gupta

Ayush Gupta

Updated on 01-Oct-2020 11:24:43

668 Views

In this problem, we are given input from the user. Our task is to create a program to find out the data type of user input in C++.Problem Description − We will take input from the user and check the data type of the input value.Let’s take an example to ... Read More

Program to find Perimeter / Circumference of Square and Rectangle in C++

Ayush Gupta

Ayush Gupta

Updated on 01-Oct-2020 11:22:01

351 Views

In this problem, we are given the side of a square (A) and the length and breadth of a rectangle (L and B). Our task is to create a Program to find Perimeter / Circumference of Square and Rectangle in C++.Problem Description:To find the circumference of a square, we need ... Read More

Program to find remainder when large number is divided by 11 in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 05:07:47

386 Views

In this problem, we are given a string num which is a large number. Our task is to create a program to find remainder when large number is divided by 11 in C++.Problem Description − We need to find the remainder when the number defined by the string is divided ... Read More

Program to find remainder when large number is divided by r in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 05:05:49

394 Views

In this problem, we are given a string num which is a large number and an integer R. Our task is to create a program to find remainder when large number is divided by r in C++.Problem Description − We need to find the remainder when the number defined by ... Read More

Program to find remainder without using modulo or % operator in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 05:03:25

1K+ Views

In this problem, we are given two numbers, N and D. Our task is to create a Program to find remainder without using modulo or % operator in C++.Problem description − We need to find the remainder that will be left after dividing the number N by D. But we ... Read More

Program to find second most frequent character in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 05:00:42

619 Views

In this problem, we are given string str. Our task is to create a Program to find second most frequent character in C++.Let’s take an example to understand the problemInputstr = “abaacabcba”Output‘b’Solution ApproachTo find the character that is second most frequent in the string. We need to maintain a count ... Read More

Program to find size of Doubly Linked List in C++

Ayush Gupta

Ayush Gupta

Updated on 17-Sep-2020 04:57:41

421 Views

In this problem, we are given a doubly linked list. Our task is to create a program to find size of Doubly Linked List in C++.Doubly Linked List is a special type of Linked list in which navigation is possible in both ways, either forward and backward easily as compared ... Read More

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