* * * * * * * * * *
/* Simple program to .... */
#include <stdio.h>
int main ( )
{
int row, column;
int size;
printf("Enter the size: ");
scanf("%d", &size);
row = 1;
while (row <= size) {
column = 1;
while (column <= size) {
printf("* ");
column++;
} /* end while (column... */
printf("\n");
row++;
} /* end while (row... */
return 0; /* 0 indicates program ended successfully */
} /* end main */
2) Write a program to generate the output of
* * * * * * * * *
* * * * * * * *
* * * * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*
3. For each of the "for" statements, indicate the values of the loop-control variable and the number of times the loop iterates.
for-loop statement | values of the loop-control variable | number of iterations |
for (i = 1; i <= 100; i++) |   |   |
for (i = 0; i < 100; i++) |   |   |
for (i = 100; i >0; i--) |   |   |
for (i = 0; i < 100; i += 5) |   |   |
for (i = -5; i < 37; i += 10) |   |   |
for (i = 1; i != 10; i += 2 ) |   |   |