how to use a method in printf code example Example: how to print % in printf printf("100 %% 23"); // the first % is a escape charachter