+ 6

Challenge: Transform the first 100 numbers in the binary number system

10th Dec 2017, 5:34 PM
Даниил Смахтин
Даниил Смахтин - avatar
8 Respostas
12th Dec 2017, 6:04 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 11
// In Java... for(int i = 1; i <= 100; i++) { System.out.println(i + " = " + Integer.toBinaryString(i)); }
10th Dec 2017, 5:38 PM
Dev
Dev - avatar
10th Dec 2017, 5:48 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 8
Not exactly the binary, but also octal and hex # input 100 https://code.sololearn.com/cZ8qsrxo200c/?ref=app
28th Dec 2017, 6:31 AM
Tato
Tato - avatar
+ 5
https://code.sololearn.com/cdj2UAgV26YF/?ref=app
10th Dec 2017, 6:07 PM
...
+ 3
Python: (print(bin(i)) for i in range(1, 101)) Too lazy to implement my own algorithm for this.
10th Dec 2017, 5:49 PM
LunarCoffee
LunarCoffee - avatar