printf("format",...)

Prints the values using the C language style. The format string can process the e, f, s, i and d format characters only.


See also sprintf print println 


Example


printf("My name is %10s and I'm %d years old", "John", 25 )

My name is       John and I'm 25 years old