the following program has an output of:
2 4 16
how can i make it appear like this:
2 4 16 256
this is the program:
Type: Posts; User: anarcho
the following program has an output of:
2 4 16
how can i make it appear like this:
2 4 16 256
this is the program:
i cant figure out how i should write a c program regarding this problem...
when i enter a binary number,say 101101, the result would be the decimal equivalent of 45...
it goes like this,
1 ...
well thanks for posting people...
btw,our instructor told us we won't use loop,if and then,and the likes...
only %,/,-
thanks to all...
thanks steve cao,it's working
here's my program
# include <stdio.h>
main()
{
int num, x;
clrscr();
printf("Enter a number");
that when i enter a number ,for example 575,
the results would be like this...
500: 1
100: 0
50: 1
20: 1
10: 0
5: 5
1: 0