Console Input/Output Functions

  • The screen and keyboard together are known as a console.

  • Console Input/Output functions can be further classified into two categories— 

formatted and unformatted console I/O functions.

  • The basic difference between the two is that the formatted functions allow the input to be read from the keyboard or the output displayed on the Visual Display Unit to be formatted as per our requirements.

  • For example, if values of marks and roll no are to be displayed on the screen, then the details like where this output would appear on the screen, how many spaces would be present between the two values, the number of places after the decimal points, etc  can be controlled using formatted functions.