How to print a grid????
Here is the question to be answered:
Write a program that reads in an integer value in the range 1 to 20 and prints out a square of stars of that demension. for example, if the user enteres 5 the following will bedisplayed:
*****
*****
*****
*****
*****
this is what i have so far..
#include <stdio.h>
#include <stdlib.h>
int main()
{
int counter, num_1;
counter = 1;
printf("Enter Number: ");
scanf("%d", &num_1);
while (counter <= num_1)
{
counter++;
printf("*");
}
system("PAUSE");
}
thanks...