Posted by : Unknown
Wednesday, February 3, 2016
*
***
*****
*******
*********
*********
*******
*****
***
*
Ans:
#include<stdio.h>
int main(){
char *ptr="*********";
int i,j;
for(i=0;i<9;i++){
if(i<5)
printf("%*.*s\n",5+i,2*i+1,ptr);
else
printf("%*.*s\n",13-i,17-2*i,ptr);
}
return 0;
}
**********OUTPUT**********
*
*
***
*****
*******
*********
*********
*******
*****
***
*
*************************Related Posts :
- Back to Home »
- Star Patterns »
- 21.Symbol Rhombus as using *'s as shown below (Using Pointer)