编写一个C程序,运行时输出以下图形:

编写一个C程序,运行时输出以下图形:

****

****

​ ****

​ ****

代码示例:

#include <stdio.h>

int main()
{
	for (int i = 0; i < 4; i++)
	{
		for (int j = 0; j < i; j++)
		{
			printf("%s", "  ");
		}
		printf("%s
", "*****");
	}
	return 0;
}

运行截图:

编写一个C程序,运行时输出以下图形:

原文地址:https://www.cnblogs.com/cyuyanchengxu/p/13542751.html