Return two digit after decimal point in C

In this article, we have explained how to return two digits after decimal point using functions and implemented the technique in C Programming Language.

Table of contentsProblem statementApproach to solveImplementationOutputProblem statement

In this problem, we have to return two digits ater decimal point using functions.

For example, if the input number is 5412.921445, then the first two digits after decimal point are 92.

Approach to solve

Following is the approach to solve the problem:

...
 •  0 comments  •  flag
Share on Twitter
Published on December 31, 2022 22:40
No comments have been added yet.