Printf
To output values or print text in C, you can use the printf()
function:
What’s \n
exactly ?
The newline character (\n
) is called an escape sequence, and it forces the cursor to change its position to the beginning of the next line on the screen. This results in a new line.
More information about Escaping Sequences
How to print variables
float
How to print a fixed digit number after the dot: