# Calculate factorial of a number using C++ Recursive function

In this program, we see how to use a recursive function to calculate the factorial of a number using the C++ language. The following program has the recursive fact() function merely to return a number or call itself again. This program …

# Convert Decimal Number Array to Binary using C++

This program converts all the decimal numbers in an array to binary. To convert a decimal number into binary, we follow the following steps: Divide the decimal number by 2 and note the remainder Divide the Quotient repeatedly by 2 …

# C program to convert Octal number into Decimal number

Octal to Decimal: How to Convert Octal to decimal conversion is one of the most commonly taught problem solving exercises in computer basics. So is there an octal to decimal formula? Yes, an octal number can be converted to a decimal …

# Write a program that takes in an integer between 1 and 366 and then outputs the full date that it corresponds.

This question was asked at a forum, link. The question is quite self explanatory. We have to write a program that takes in a number between 1 to 366 and displays the corresponding date.

Tested in Visual C++ 2010

# Basic C Language Hello World Program

The most basic program for C language. Thats what this is. This is a simple C language “Hello World” program. The Program:

getch(): getch() stands for ‘get charater’. It tells the compiler to wait for the user to press …

# Tic Tac Toe in C++

This program is a game program, Tic Tac Toe. Most of us have played this game in school days, we will be making a C++ program on it now. This program is quite lengthy, so I’ll first explain each variable …

# C++ Program to demonstrate Insertion Sort

Insertion sort is a simple sorting algorithm: a comparison sort in which the sorted array (or list) is built one entry at a time. How it works: In insertion sort,elements are entered into the array(or list) 1-by-1. When the first element is …

# Demonstrate Class in C++

In this program, we will demonstrate Classes. Here, we’ve considered an example to calculate area of a rectangle. We will create a class named ‘Rectangle’. Syntax to declare a class:

Class Rectangle: Next, we create a function ‘Area’ to …