what do you understand by format statements ? explain with example
Answers
Answered by
0
Answer:
The period is immediately followed by another integer giving the number of digits to be printed (or read) to the right of the number's decimal. For example if the computer contains the number 11.23456, then "f10. 3" in an output format results in a printed number " 11.234" (four spaces to the left of the number).
Answered by
0
Format statements. So far we have mostly used free format input/output. This uses a set of default rules for how to input and output values of different types (integers, reals, characters, etc.). Often the programmer wants to specify some particular input or output format, e.g., how many decimals places in real numbers ...
Hope this helped u
Hope this helped u
Similar questions
Computer Science,
1 month ago
Math,
1 month ago
English,
4 months ago
Social Sciences,
10 months ago
Math,
10 months ago
Physics,
10 months ago