[ create a new paste ] login | about

Link: http://codepad.org/AlPFr2u1    [ 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(3,17);
return 0;
}


Output:
1
2
In function 'f':
Line 9: error: expected ';' before 'printf'


Create a new paste based on this one


Comments: