12345678910111213141516171819202122232425262728
#include <stdio.h> #include <stdlib.h> int main() { int i, j, y, x; x = 4; y = 7; for (i = 0; i < x; i++) { for (j = y; j > 0; j--2) printf ("*"); printf ("\n"); } return (EXIT_SUCCESS); }
j--
j-=2
loop x times{ print '*' y times print '\n' decrement y by two }
j--2