[ create a new paste ] login | about

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

C, pasted on May 25:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
void main(void)
{
        int i,j;
        for(i=1;i<=10;i++)
        {
                j=i>5? 11-i : i;
                printf("%s%s\n","     "+j,"**********"+(11-2*j));
        }
}


Output:
1
2
3
4
5
6
7
8
9
10
    *
   ***
  *****
 *******
*********
*********
 *******
  *****
   ***
    *


Create a new paste based on this one


Comments: