Posted by : Unknown Wednesday, February 3, 2016

***
*****
*
*
*
*
*
*****
***
*

 
Ans:
#include <stdio.h>
int main()
{
    int i;
    for (i = 0; i < 5; i++)
        switch (i) {
        case 0:
            printf("    *\n");
            break;
        case 1:
            printf("  * * *\n");
            break;
        case 2:
            printf(" * * * *\n");
            for (i = 0; i < 5; i++)
            {
                printf("    *\n");
            }
        case 3:
            printf(" * * * *\n");
        case 4:
            printf("  * * * \n");
        case 5:
            printf("    * \n");
            break;
            getchar();
        }
return 0;
}


 **********OUTPUT********** 
*
 *** 
*****
*
*
*
*
*
*****
***
*
 

  *************************

Leave a Reply

Thanks for your comment

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Blogger templates

Powered by Blogger.

Author Info

Blogroll

Blogroll

Slider[Style1]

Image Documents

View more

Popular Posts

Total Pageviews

Blog Archive

Blog Archive

Komentar

Artikel Terbaru

About me

Facebook

Advertise

Recent Posts

Search This Blog

Recent Posts

Sponsor

Video Of Day

Text Widget

Sample Text

Contact Us

Name

Email *

Message *

Followers

Labels

Site Links

Join the Team

Social Icons

Find Us On Facebook

Flickr Images

Social Media

Pages

Join with us

Popular Posts

Legal Documents

View more

Popular Posts

Getting Started

View more

- Copyright © SmileBD -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -