Sunday, April 01, 2007

Cherish the faculities of languages' feature.

int print(int a, int b)
{
 return printf("%d\n", a)
  &&(a<b)
  &&(print(a+1,b)||1)
  &&printf("%d\n",a);
}
 
This Program perfectly implement the target of printting the integers without the usage of statements of loop or judgement.

No comments: