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? -

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

ajax - PHP/JSON Login script (Twitter style) not setting sessions -