Tag Archives: basic input output in c

char input in c using scanf

Char input in c using format specifier %c in scanf.





Float input in C using %f

Here is the code to take a floating point value as input and print the same.

scanf is the function used to take input from standard input , where %f is the format identifier for the floating point value.

Float input in C


Float input in C . Integer input in C

Input basic Data types (int, float, char)

Below program takes input of integer, float, string value from keyboard and prints it on screen.