[ create a new paste ] login | about

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

C, pasted on Jan 15:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

int main(){
int i,j,h;
for(i=0;i<4;i++){
for(h=1;h<4-i;h++){
printf(" ");}
for(j=0;j<4-i;j++){
printf("*");}
printf("\n");}}


Output:
1
2
3
4
5
6
   ****
  ***
 **
*

Exited: ExitFailure 10


Create a new paste based on this one


Comments: