C Format Specifiers
printf does not know what type your values are — you tell it with format specifiers. A format specifier begins with % and sits inside the format string as a placeholder. Each placeholder is replaced, in order, by the next argument after the string.
c · try it yourself
#include <stdio.h>
int main(void) {
int items = 3;
double cost = 4.5;
char unit = '