📜  c编程打印模式金字塔 - C编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:41.678000             🧑  作者: Mango

代码示例1
#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;
}