📅  最后修改于: 2022-03-11 15:04:41.678000             🧑  作者: Mango
#include
int main()
{
int rows, columns,i,j;
printf("Enter the number of rows : ");
scanf("%d", &rows);
printf("Enter the number of columns : ");
scanf("%d", &columns);
printf("\n");
/* print solid rectangle*/
for (i = 1; i <= rows; i++)
{
for (j = 1; j <= columns; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}