Home > Back-end >  C language print love, bosses told of the variables of the explanation, analysis and flow chart of t
C language print love, bosses told of the variables of the explanation, analysis and flow chart of t

Time:09-16

#include

Int main ()
{
Int I, j, k, l, m;
Char c='*'; 3//ASCII is a small character love

For (I=1; I<=5; I++) printf (" \ n ");//the first empty line 5

For (I=1; I<=3; I++)
{//there is space between the rows of the first 3 separate written
For (j=1; j<=32-2 * I; J++)
Printf (" ");//to the left of the Spaces, per line next to the left of the space less than 2//on line 8 * n - 2 * I
For (k=1; K<=I + 4 * 1; K++)
Printf (" % c ", c);//output left half character small love
For (l=1; L<=13-4 * I; L++)
Printf (" ");
For (m=1; m<=I + 4 * 1; M++)
Printf (" % c ", c);
printf("\n"); Each line//finished output line breaks
}

For (I=1; I<=3; I++)
{//there is no space between the rows of 3
For (j=1; j<=24 + 1; J++)
Printf (" ");//to the left of the space//8 * (n - 1) + 1
For (k=1; K<=29; K++)
Printf (" % c ", c);
printf("\n");
}

For (I=7. I>=1; I -)
{//7 lines
For (j=1; j<=40-2 * I; J++)
Printf (" ");//to the left of the Spaces, per line next to the left of the space less than 2//on line 8 * 2 * (n + 1) - (I)
For (k=1; K<=4 * I - 1; K++)
Printf (" % c ", c);
printf("\n");
}

For (I=1; I<=39; I++)
Printf (" ");

Printf (" % \ n "c, c);

For (I=1; I<=5; I++)
printf("\n");
return 0;
}

CodePudding user response:

This is according to heart-shaped pattern line spell it out

CodePudding user response:

This I know, I just want to explain the process variables, algorithm analysis and flow chart
  • Related