- #include <stdio.h>
- void main ()
- {
- int value = 255;
- printf("The decimal value %d in octal is %on",
- value, value);
- printf("The decimal value %d in hexadecimal is %xn",
- value, value);
- printf("The decimal value %d in hexadecimal is %Xn",
- value, value);
- }