Wednesday 10 January 2018

JavaProgram to generate random number with 1&0 (without consecutive 1s)

JavaProgram to generate random number with 1&0 (without consecutive 1s)
Output should be like : 0000100010010100
Output should not be like: 001100001011011

JavaProgram

No comments:

Post a Comment