7 lines
134 B
Groovy
7 lines
134 B
Groovy
print '''
|
|
n binary
|
|
----- ---------------
|
|
'''
|
|
[5, 50, 9000].each {
|
|
printf('%5d %15s\n', it, Integer.toBinaryString(it))
|
|
}
|