Friday, 27 March 2015

Triangle Shape-4



#include<stdio.h>
int main()
{
    int n;
    printf("Enter your number : ");
    scanf("%d",&n);
    printf("\n");

    for(int i=0;i<n;i++)
    {
        for(int j=0;j<i;j++)
        {
            printf(" ");
        }

        for(int k=n;k>i;k--)
        {
            printf("*");
        }
        printf("\n");
 }
 return 0;
}

0 comments:

Post a Comment

 

Subscribe to our Newsletter

Contact our Support

Through the contact form

Our Team Memebers