#include<stdio.h>
int zap(int n)
{
int p;
if(n<=1)
p=1;
else
p=zap(n-3)+zap(n-1);
return p;
}
int main()
{
int p=zap(6);
printf("%d",p);
}
p will be
p=zap(0) + zap(-1) +zap(1) +zap(-1) +zap(1) +zap(1) +zap(0) +zap(-1) +zap(1)
p=1+1+1+1+1+1+1+1+1=9;
i think this should be solution of this question...
plz tell me if there is wrong any thing in this explanation