Assignment5 Loop3
Assignment5 Loop3
3. Write a program to find the longest series of 1’s in a supplied integer. Also print
the bit-position where the longest series is found.
4. Input a range of integer. Write a program to list the all the numbers whose sum
of digits(reduced to single digit) is 9.
e.g Min:500 max:550 then list should print as
504(5+0+4), 513(5+1+3), .... 549(5+4+9=18(1+8=9)... etc...
5. In the above program make arrangement, to list only numbers which are
ascending-order-digits.
e.g.. 246 , 2345,22344, 4444 are valid
but 643, 2202, 456756 are not valid.
10. In the above program make arrangement to list those prime numbers , which
are sorted(digit-wise) , ascending or descending, both valid.