In the C programming language, you can use the printf() function to print text and variables to the console. The printf() function takes a format string as its first argument, which specifies how the output should be formatted. The format string can contain placeholders for variables, which are represented by % characters followed by a type specifier. For example, the following code prints the value of the variable ‘x’ as an integer:
printf(“The value of x is %d\n”, x);