#include <stdio.h>
#include <conio.h>
void main()
{
int n=0;
printf("\n\nEnter a number: ");
scanf("%d", &n);
n=n*n;
printf("\nThe square is %d ", n);
getch();
}
BY: Eng . Ali Saed
Chat with our AI personalities
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
x -=y;
write a vb program to find the magic square
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
Reference:cprogramming-bd.com/c_page1.aspx# array programming