Answers for "what is the printf function"

0

printf

printf "Hello %s, I'm %s" Sven Olga
#=> "Hello Sven, I'm Olga

printf "1 + 1 = %d" 2
#=> "1 + 1 = 2"

printf "This is how you print a float: %f" 2
#=> "This is how you print a float: 2.000000"
Posted by: Guest on March-31-2022

Code answers related to "what is the printf function"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language