code printf Color number1 number2 05d hex float 2f unsigned value red

1
2
3
4
5
code: |
printf("Color %s, number1 %d, number2 %05d, hex %x, float %5.2f, unsigned value %u.\n",
"red", 123456, 89, 255, 3.14, 250);
out: |
Color red, number1 123456, number2 00089, hex FF, float 3.14, unsigned value 250.