cout setw setprecision « Console « C++






1.Cout: precision 4Cout: precision 4
2.Demonstrate an I/O manipulator: setprecision(2) and setw(20)Demonstrate an I/O manipulator: setprecision(2) and setw(20)
3.Uses I/O manipulators to display the table of squares and square roots.
4.Enters a character and outputs its octal, decimal, and hexadecimal code.