Padding Output with the Padding Specifier
<? printf("%04d", 36); ?>
Maths: %d; English: %d; History: %d; Biology: %d.
and