CJCoding With Joseph

Print a Number in Binary

The variable n holds 10. Print its binary representation:

1010

Use Convert.ToString with base 2.

Expected Output:

1010
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.