Page 1 of 1

C prgm to write a given number in powers of 2

PostPosted: May 23, 2006 @ 2:24pm
by avssunil
hi,
can anybody tell me how to write a C program to write a given number in powers of 2
eg:
75=2^6+2^3+2^1+2^0

PostPosted: May 23, 2006 @ 2:36pm
by Presto

PostPosted: May 23, 2006 @ 4:48pm
by Kzinti