[ create a new paste ] login | about

Link: http://codepad.org/HtNBxyyI    [ raw code | output | fork ]

C, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
int main()
{
	  int i,k,j=0;
	  for(i=0;i<= 7 ;i++){
			for(j=0;j<8 ;j++)
			 if(    i+j     ==8)
				 for(k=0;k<= i ;k++)  printf("-")   ;
				printf("%2c",'*');
			printf("\n");
	  }
	  return 0;
}


Output:
1
2
3
4
5
6
7
8
 *
-- *
--- *
---- *
----- *
------ *
------- *
-------- *


Create a new paste based on this one


Comments: