It is very easy to write using standard function printf
int printf ( const char * format, ... );
Print formatted data to stdout
Writes the C string pointed by format to the standard output (stdout). If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
#include <stdio.h>
int main()
{
printf("* *\n");
printf(" \n");
printf("* *\n");
printf(" \n");
printf("* * *\n");
printf(" \n");
printf("* * * *\n");
printf(" \n");
printf("* *\n");
return 0;
}
Regards,
Alex