CPP Program to generate magic squares

A magic square of order n is an arrangement of n^2 numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. A magic square contains the integers from 1 to n^2. The constant sum in every row, column and diagonal […]

CPP Program to convert number into Words

This C++ program convert any integer number between zero to 10000000 and convert it into its equivalent Words. The program is divided into parts and heavily using function to reduce mundane tasks. The whole program was written in Windows 10 environment in Dev C++ IDE. Here is the C++ code to convert number into Words. […]

CPP Program to print number Rhombus

Number rhombus is one of the best example to teach and show mastery on looping at any stage. The rhombus program is here,This example was developed  in windows 10 environment using DEV C++ IDE but you can run this program in any environment as we have not used any environment specific libraries. /* Program to […]

CPP Program to convert binary number into Decimal Number

This simple binary to decimal converter takes one binary number from the keyboard and convert the same number using place value method into its equivalent decimal number. The program was tested on window 10 using Dev C++ IDE. /* program to convert any binary number into its equivalent decimal number made by : rakesh kumar […]

CPP Program to convert Decimal Number into Binary Number

The program takes any integer number from the standard input device ( keyboard) and convert that number into its equvalant binary number using division method. This program was tried and tested on Dev C++ IDE.  Here is the source code of the same program. /* program to convert any decimal number into its equvalent binarynote […]