How to print reversed mirrored right triangle star pattern with C

The source code of these patterns with C language are specially designed, and there are no type of errors in these source codes, you can easily copy this pattern code from the code section bellow and paste in to your compiler and enjoy the output.

This pattern code makes life easy for students to convert hexadecimal into binary with c language.And if you want more conversions with C language, then many other conversion with C language are available on the right side of this post.

If you are facing any type of problem in this pattern code, mention bellow this post in comment section.You will get a prompt response.

#Bug free output

#Happy programming

 
#include <stdio.h>
int main()
{
    int i, j, n;
    printf("Enter value of n : ");
    scanf("%d", &n);
    for(i=1; i<=n; i++)
    {
        for(j=1; j<i; j++)
        {
            printf(" ");
        }
        for(j=i; j<=n; j++)
        {
            printf("*");
        }
        printf("\n");
    }
    return 0;
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu