程序描述
按照下面所示的方式打印一个正方形内的另一个正方形

算法
Accept the number of rows the outer Square to be drawn Display the Outer Square with the number of rows specified by the User. Display another square inside the outer square.
Example
的中文翻译为:
示例
/* Program to print Square inside Square */
#include <stdio.h>
int main()
{
int r, c, rows;
clrscr();
printf("Enter the Number of rows to draw Square inside a Square: ");
scanf("%d", &rows);
printf("<p>");
for (r = 1; r = 3 && r = 3 && c </p>
<p>");
}
getch();
return 0;
}</p></stdio.h>
输出

13万字C语言保姆级教程(深入):立即使用
在学习笔记中,你将探索c语言的核心概念和高级技巧!











