This assignment combines p4.12 and p4.14. Write a program that
(1) first asks a user to input a positive integer,
(2) uses a "do while" loop to print out the binary representation of the integer. To do that, you first print the remainder number % 2, then replace the number with number / 2. Keep going until the number is 0. For example, if the user provides the input 13, the output should be:
1
0
1
1
(3) asks the user to input a word
(4) uses a "nested for" loop to print all substrings of the word. For example, if the input is "rum", its substrings are:
r
u
m
ru
um
rum