printf()
is used to display output to the screen, whereas scanf()
is used to take input from the user. printf()
formats and outputs data, while scanf()
reads and stores data from the user into variables.
Example:
FreeNotes
printf()
is used to display output to the screen, whereas scanf()
is used to take input from the user. printf()
formats and outputs data, while scanf()
reads and stores data from the user into variables.
Example: