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; }
Share this:
- Click to share on Twitter (Opens in new window)
- Click to share on Facebook (Opens in new window)
- Click to share on Google+ (Opens in new window)
- Click to share on WhatsApp (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Skype (Opens in new window)
- Click to email this to a friend (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to print (Opens in new window)