Sunday , December 11 2016
Home / C / c program for diamond shape pattern #16

c program for diamond shape pattern #16

This is a C program for diamond shape pattern which can be both filled and empty. However this choice is left for the user who can enter their choice as per their requirement.

Explanation:  1. the character will print if it is in the boundary condition of the pattern i.e the first ( j==1 ) character or the last ( j==2*i-1 ) character . Or the character will print if the user choice is f i.e fill and in the boundary.

OUTPUT:

empty star pattern

Tags: burfi shaped pattern in c, diamond shape pattern in  c

Also See:   c program for Best fit memory segment

Check Also

Hide Mouse Pointer C Program

How to Hide a Mouse Pointer Program in C : This program will show and hide ...

One comment

  1. Subhadeep Banerjee

    Wow!
    Thanks dear!
    On the other websites they gave a wrong program with a fake output.
    But finally I got it here… It’s really easy and cool… (y)

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.