
Write a program that converts a non-negative decimal integer to its lowercase hexadecimal representation.
./print_hex 31Expected result
1f
For your own tracking. Tests grade your code.
./print_hex 200Expected result
c8
./print_hex 3735928559Expected result
deadbeef
Expected files
print_hex.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that converts a non-negative decimal integer to its lowercase hexadecimal representation.
./print_hex 31Expected result
1f
For your own tracking. Tests grade your code.
./print_hex 200Expected result
c8
./print_hex 3735928559Expected result
deadbeef
Expected files
print_hex.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.