Formatted output: int, float and string
#include <stdio.h> int main(void) { printf("%.5d\n", 10); printf("$%.2f\n", 99.95); printf("%.10s", "This is a long line\n"); return 0; }