Separate number from decimal place

In this article, we will solve the problem of separation of number from before the decimal and after and provide the implementation in C programming language.

Table of contents:

Problem StatementSolutionImplementationProblem Statement

In this problem we will take a floating point number and separate it into two part. One that comes before decimal point and onr that comes after

Example: 19.26
output
19
26

Solution

First we take the input from the user and store it in a float data type for ex...

 •  0 comments  •  flag
Share on Twitter
Published on October 24, 2022 10:16
No comments have been added yet.