Input and Output in C
Reading input data, processing it and displaying the results are the three tasks of any program. The data is read from the input device such as a keyboard. Operations on the data are performed on the basis of the operators, and the result is displayed on the screen. All the three tasks are important and none of them can be ignored.
There are two ways to accept the data. In one method, a data value is assigned to the variable with an assignment statement. The programmer writes assignment ...