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