Microsoft's Interview question Compute(int x) function without loop , without temporary variable without goto,continue
#include<stdio.h> int compute(int x) { printf("%d ",x); if(x*2<20000) printf("%d ",compute(x<<1)>>1); return x; } int main() { compute(1); getch(); return 0; }