#include<stdio.h> #include<conio.h> int f(int n) { if(n<=1) { printf(" %d",n); } else { f(n/2); printf(" %d",n%2); } }
void main() { clrscr(); f(173); getch(); } o/p-1 0 1 0 1 1 0 1 but i m getting 1 0 1 1 0 1 0 1 plz explain me........... -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.