Read a integer number which has 2 digits after the decimal


In C language:

Read a integer number which has 2 digits after the decimal point. The number also has at least 6 digits the decimal point.

Extract all digits at even positions from before the decimal point. Print them in reverse order.

Extract all digits at odd positions from before the decimal point and print in order of occurrence.

No array, no string allow.

Number in file: 14876348

Even positioned digits printed in reverse order: 8 3 7 4

Odd positioned digits printed in order - 1 8 6 4

Solution Preview :

Prepared by a verified Expert
Business Management: Read a integer number which has 2 digits after the decimal
Reference No:- TGS02912532

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)