## C++ Program for Sum of squares of first n natural numbers

Given a positive integer N. The task is to find 12 + 22 + 32 + ….. + N2. Examples: Input : N = 4… Read More »

## searching in fork()

Prerequisite – fork() in C, sorting in fork() Problem statement – Write a program to search the key element in parent process and print the… Read More »

## Find trace of matrix formed by adding Row-major and Column-major order of same matrix

Given two integers N and M. Consider two matrix ANXM, BNXM. Both matrix A and matrix B contains elements from 1 to N*M. Matrix A… Read More »

## Command line arguments example in C

Prerequisite: Command_line_argument. The problem is to find the largest integers among three using command line argument. Notes: Command-line arguments are given after the name of… Read More »

## C program to print employee details using Structure

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 »

## Rendering a Triangle using OpenGL(using Shaders)

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 »

## Number of stopping station problem

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 »

## Finding the best fit rectangle that covers a given point

We are provided with a 2D plane and a point (, ). We have to find a rectangle (, , , ) such that itencompasses… Read More »

## Maximum of smallest possible area that can get with exactly k cut of given rectangular

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 »

## Print Number series without using any loop

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 »

## Multiple calculations in 4 processes using fork()

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 »

## Program for dot product and cross product of two vectors

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 »

## sorting in fork()

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 »

## C++ Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## C++ Program for Smallest K digit number divisible by X

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 »