CPP Program to generate hollow star squre

This C++ program generate hollow star square using for loop. The program basically manipulate the space before the star(*)  and after the stars. The program was generated on Windows 10 and compiled and executed on Dev C++ IDE. /* program to print blank rhombus made by : rakesh kumar */ #include #include using namespace std; […]

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 […]