[ create a new paste ] login | about

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

C, pasted on Jan 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h> 
#include <stdlib.h>

void f (int a, int b)
{
if(a<=b)
 {
 f(a+1,b-2);
 printf("%c",'*');
 }
 else
 printf("%d",b);
}
int main()
{
f(17,17);
return 0;
}


Output:
1
15*


Create a new paste based on this one


Comments: