i need one more thing from somone out there. here's the problem:
write a method using for loops that reads an integer from the user; make sure the number is greater than 20. divide the integer by 2 and print out the result, keep repeating the division by 2 until the remainder of the division is 1 or 0. for example if the user enters 10, you should print something similar to:
10/2=5
5/2=2
2/2=1
Finished dividing
thanks alot i' greatly appreciate it
2007-03-14
04:21:17
·
3 answers
·
asked by
laxplayer2604
1
in
Computers & Internet
➔ Programming & Design