โ Back to Printing
Question 241
Print a Number in Binary
Print a Number in Binary
The variablenholds 10. Print its binary representation: 1010 UseConvert.ToStringwith 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.