*
***
*****
*******
*********
*********
*******
*****
***
*
Sol.Code :-
=======
int main(void)
{
int i,f,p,q,last = 1,push = 9 ;
for ( i = 1 ; i <= 5 ; i++ )
{
for ( f = 1 ; f <= last ;f++ )
{
printf("%c",42);
continue;
}
last = (last + 2) ;
printf("\n");
}
for ( p = 1 ; p <= 5 ; p++ )
{
for ( q = 1 ;q <= push ; q++ )
{
printf("%c",42);
continue;
}
push = (push - 2);
printf("\n");
}
}
No comments:
Post a Comment