Ayush Gupta has Published 543 Articles

Program to find the head start in a race in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:22:43

88 Views

In this problem, we are given two integers that give the head start that is given by A to B and C respectively in a 100-meter race. Our task is to create a program to find the head start in a race in C++.Code Description − Here, there are head ... Read More

Program to find the Hidden Number in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:21:21

270 Views

In this problem, we are an array arr[] consisting of n integer values. Our task is to create a Program to find the Hidden Number in C++.Code description − For an array, the hidden number, is the number which when subtracted from each element of the array gives the sum ... Read More

Program to find the Interior and Exterior Angle of a Regular Polygon in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:20:08

230 Views

In this problem, we are given a number n that denotes the sides of a regular polygon. Our task is to create a Program to find the Interior and Exterior Angle of a Regular Polygon in C++.Problem Description − Here, for the given number of sides, we will find the ... Read More

Program to find the initials of a name in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:19:16

785 Views

In the program, we are given a string name that denotes the name of a person. Our task is to create a Program to find the initials of a name in C++.Code Description − Here, we have to find the initials of the name of the person given by the ... Read More

Program to find the largest and smallest ASCII valued characters in a string in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:18:18

1K+ Views

In this problem, we are given a string. Our task is to create a program to find the largest and smallest ASCII valued characters in a string in C++.Code Description − Here, we have a string that consists of both upperCase and lowerCase characters. And we need to find the ... Read More

Program to find the Largest Number using Ternary Operator in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:17:13

2K+ Views

In this problem, we are given some numbers. Our task is to create a Program to Find the Largest Number using Ternary Operator in C++.The elements can be −Two NumbersThree NumbersFour NumbersCode Description − Here, we are given some numbers (two or three or four). We need to find the ... Read More

Maximum of four numbers without using conditional or bitwise operator in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:15:42

401 Views

In this problem, we are given four integer numbers. Our task is to create a program to find the maximum of four numbers without using conditional or bitwise operator in C++.Code Description − Here, we have four integer values. And we need to find the maximum value out of these ... Read More

Program to find the maximum element in a Matrix in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:14:05

696 Views

In this problem, we are given a matrix of size nXm. Our task is to create a program to find the maximum element in a Matrix in C++.Problem Description − Here, we need to simply find the largest element of matrix.Let’s take an example to understand the problem, Inputmat[3][3] = ... Read More

Program to find the maximum difference between the index of any two different numbers in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:12:47

284 Views

In this problem, we are given an array arr[] consisting of n integers. Our task is to create a program to find the maximum difference between the index of any two different numbers in C++.Code Description − Here, we need to find the maximum difference between the index of integer ... Read More

Program to find the minimum (or maximum) element of an array in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 14:21:28

10K+ Views

In this problem, we are given an array arr[] of n integers. Our task is to create a program to find the minimum and maximum element of an array in C++.Problem Description − Here, we have an array arr[]. The contains n integer values. We have to find the maximum ... Read More

Advertisements