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**********
*
***
*****
*
*
*
*
*
*****
***
*
*************************
Related Posts :
- Back to Home »
- Star Patterns »
- 26. I Arrow shape as using *'s as shown below.