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=1;m<i;m++)
            printf(" ");
        for(n=7;n>=i;n--)
            printf("*");
        printf("\n");
    }
}
Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics