## Distance between two points travelled by a boat

Write a program to determine the distance(D) between two points traveled by a boat, given the speed of boat in still water(B), the speed of… Read More »

## Speed of boat upstream and downstream

Write a program to find the speed of boat upstream and downstream. In order to calculate the speed of the boat upstream and downstream, we… Read More »

## Program to print the pattern ‘D’

In this article, we will learn how to print the pattern D using stars and white-spaces. Given a number n, we will write a program… Read More »

## Program to implement ASCII lookup table

ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character… Read More »

## Program to calculate volume of Ellipsoid

Ellipsoid, closed surface of which all plane cross sections are either ellipses or circles. An ellipsoid is symmetrical about three mutually perpendicular axes that intersect… Read More »

## Program to determine the quadrant of the cartesian plane

Given co-ordinates (x, y), determine the quadrant of the cartesian plane. Image_source : wikipedia.org Examples : Input : x = 1, y = 1 Output… Read More »

## Program for Hexagonal Pattern

Given a positive integer n, print a hexagonal pattern using start with each sides containing n stars. Example : Input : 4 Output : *… Read More »

## Program to calculate age

Given current date and birth date, find the present age. Examples: Input : Birth date = 07/09/1996 Present date = 07/12/2017 Output : Present Age… Read More »

## Count numbers with unit digit k in given range

Here given a range from low to high and given a number k.You have to find out the number of count which a number has… Read More »

## Program to check if matrix is upper triangular

Given a square matrix and the task is to check the matrix is in upper triangular form or not. A square matrix is called upper… Read More »

## Number of triangles after N moves

Find the number of triangles in Nth step, Rules: Draw an equilateral triangle at the start. In the i-th move, take the uncolored triangles, divides… Read More »

## Program to find slope of a line

Given two co-ordinates, find the slope of a straight line. Examples: Input : x1 = 4, y1 = 2, x2 = 2, y2 = 5… Read More »

## Replace a character c1 with c2 and c2 with c1 in a string S

Given a string S, c1 and c2. Replace character c1 with c2 and c2 with c1. Examples: Input : grrksfoegrrks, c1 = e, c2 =… Read More »

## Sum of the series 0.6, 0.06, 0.006, 0.0006, …to n terms

Given the number of terms i.e. n. Find the sum of the series 0.6, 0.06, 0.006, 0.0006, …to n terms. Examples: Input : 2 Output… Read More »