In this lecture we discuss
Field Width Specifier
Field Width Specifier syntax
Precision
Specifying Field Width
Specifying Field Width for Integers
Specifying Left or Right Justified Output
Specifying Width & Precision for Floating Point Values
Write a program that displays average marks using field width 5 characters and precision of 2 characters.
Write a program that display floating point value 152.3333 using field width of 10 characters and precision of 3 characters justified to left side.
Write a program that displays the name of a person right justified and address left justified by using 25 characters space for each.
Download
0 formats
No download links available.
Computer 2nd Year Chapter no 10 Lecture 19 Field Width Specifiers | NatokHD