C program only in two loops -


i want write c program having following output. there condition. should done maximum 2 loops only.

output            *           * *          * * *         * * * *        * * * * * 

any appreciated. thanks

here code without loop.

int main() {     printf("    *\n");     printf("   * *\n");     printf("  * * *\n");     printf(" * * * *\n");     printf("* * * * *\n");     return 0; } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -