X

DAYS

:

HOUR

:

MINS

:

SEC

How to print the digits of a number containing 0's and 1's without using string

If the number is 1000.

you need to print as 1 0 0 0 and

if the number is 010

you need to print it as 0 1 0 and

if it is 001 print as 0 0 1

Author: Praveen K.P
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer