1、在屏幕上输出以下图案:
*
2、思路:这道题有两种常见的解法。
第一种:直接用printf进行按行输出;
第二种:for循环和switch嵌套使用。
3、程序:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
for (i = 0; i < 14; i++)
{
switch (i)
{
case
1、在屏幕上输出以下图案:
*
2、思路:这道题有两种常见的解法。
第一种:直接用printf进行按行输出;
第二种:for循环和switch嵌套使用。
3、程序:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
for (i = 0; i < 14; i++)
{
switch (i)
{
case