# Category Archives: C++ Programs

In this program, we will read and display details of n employees using Structure. Employee details like Name, age, phone number, salary will be printed.… Read More
In this article we’ll see how to render a triangle using OpenGL. A triangle is probably the simplest shapes you can draw in OpenGL after… Read More
There are 12 intermediate stations between two places A and B. Find the number of ways in which a train can be made to stop… Read More
We are provided with a 2D plane and a point (, ). We have to find a rectangle (, , , ) such that itencompasses the given point (, ).… Read More
Given n×m big rectangular area with unit squares and k times cut is allowed, the cut should be straight (horizontal or vertical) and should go… Read More
Problem – Givens Two number N and K, our task is to subtract a number K from N until number(N) is greater than zero, once… Read More
Write a program to create 4 processes: parent process and its child process which perform various tasks : Parent process count the frequency of a… Read More
There are two vector A and B and we have to find the dot product and cross product of two vector array. Dot product is… Read More
Prerequisite – Introduction of fork(), sorting algorithms Problem statement – Write a program to sort the numbers in parent process and print the unsorted numbers… Read More
Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.Examples:   Input : n = 5 Output :… Read More
Integers X and K are given. The task is to find the smallest K-digit number divisible by X. Examples: Input : X = 83, K… Read More
Integers X and K are given. The task is to find highest K-digit number divisible by X. Examples: Input : X = 30, K =… Read More
You have been given a series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!, find out the sum of the series till nth term.… Read More
Given a square matrix of order n*n, we need to print elements of the matrix in Z form Examples: Input : mat[][] = {1, 2,… Read More
There is a given an array and split it from a specified position, and move the first part of array add to the end. Examples:… Read More