Computer programming - Homework 3
1.Read a real number
Write a function that reads (digit by digit) and returns the value of
a real number which only has a fractional part (starting with the dot
until no more digit is found). You need to write a recurrence relation
that describes how the next digit is added to the already existing part.
Next, combine this function with readnat (or a similar function)
and produce a function that reads and returns a complete real number,
with integer and fractional part.
2. C comments
Write a program that prints its input with C-style comments filtered out.
(both multiline and single-line comment syntax).
Marius Minea
Last modified: Tue Oct 6 9:45:00 EEST 2015