c program to print star patterns

write a c program to print star patterns
*******
 ******
   *****
     ****
       ***
         **
           *

#include <stdio.h>

int main()
{
    int i,m,n;
    for(i=7;i>=1;i--)
    {
        for(m=7;m>i;m--)
            printf(" ");
        for(n=1;n<=i;n++)
            printf("*");
        printf("\n");
    }
}

Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics