Decimal to Binary (Chars Mode)

by @programordieโ€ขabout 2 months ago
Featured

๐Ÿ“ Description

Convert a decimal number to a binary number

๐Ÿ“ฅ Input

Type: number

A random decimal number.

๐Ÿ“ค Output

Type: string

A string of the binary representation.

๐Ÿงช Sample Test Cases

Input:

5

Output:

101

Input:

15

Output:

1111

+ 2 more test cases will be used for validation

๐Ÿ’ป Code Editor

86 characters
Loading...
Sign in to submit solutions

๐Ÿ† Leaderboard

23
31