Computer Science, asked by TbiaSamishta, 11 months ago

What is use of printf and scanf function suitable example?

Answers

Answered by Shubu01
3

\huge{Hey Mate!!!}

☆☞ 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!

Answered by SnehaG
2

<font color="red">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!

Similar questions