Track Lua
Lua track

Binary

An exercise from the Lua track
easy

About this exercise

Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles

bitwise operations
control flow if else statements
control flow loops
strings
math
View all solutions