+ 1
Binary counter
Has anyone made a binary counter
11 ответов
+ 7
1. Include the programming language you're using in the tags
2. Show us you attempt
+ 4
This can be done with int() function. BTW: The output is not 23 but 9!
#example input=001001 output=(23) -> 9
print(int('001001',2))
# output: 9
+ 4
https://code.sololearn.com/cLs2Ek5tcoMN/?ref=app
They already mentioned the problem with your example tho.
Charlie
+ 3
What's that ?
+ 3
I have no idea how that comes as 23 honestly. Can you show us some more examples? maybe there's a pattern or logic that can be comprehended if we can have some more examples Charlie
+ 1
you input binary code it outputs real number
+ 1
example input=001001 output=23
0
The input code is wrong to implies it so let's specify unique code to unlock it at once
0
How can you code
0
😊😊😊😊😊