QP School
Input and Output functions (printf and scanf) in C - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32)
+--- Thread: Input and Output functions (printf and scanf) in C (/showthread.php?tid=5078)



Input and Output functions (printf and scanf) in C - Qomplainerz - 07-25-2023

`printf()` is used to display output to the console, and scanf() is used to read input from the user.

int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("Your age is %d\n", age);