Пример форматирования текста

printf("Color %s, number1 %d, number2 %05d, hex %x, float %5.2f, unsigned value %u.\n",
       "red", 123456, 89, 255, 3.14, 250);
Color red, number1 123456, number2 00089, hex FF, float  3.14, unsigned value 250.
-----------