i want code for print format as shown below in C lang.

dhanesh10's Avatar, Join Date: May 2010
Newbie Member
*****
****
***
**
*
what is the code to print such format in C language
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Code:
printf("*****");
printf("****");
printf("***");
printf("**");
printf("*");
This Should do it.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
TMTOWTDI.
Code:
void test21()
{
	int i=0x3039;
	do for (int j=0; j<(i%012); j+=printf("*"));
	while (i/=printf("\n")*012);
}
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
And another
Code:
void test22()
{
	int fudge=20;
	char *foo=" I am teh 1337 CHEAT";
	while (fudge--,*foo++)
		putchar((foo[fudge--]-32)?42:10);
}