What is use of printf and scanf function suitable example?
Answers
☆☞ Here is ur answer ☜☆
✔✔ Printf() function in C language: In C programming language, printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable.
✔️✔️ The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b. The scanf function uses the same placeholders as printf: int uses %d. float uses %f.
HOPE IT HELPS!
hello!
☆☞ Here is ur answer ☜☆
✔✔ Printf() function in C language: In C programming language, printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable.
✔️✔️ The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b. The scanf function uses the same placeholders as printf: int uses %d. float uses %f.
HOPE IT HELPS!