Andy C. answered 05/26/18
Tutor
4.9
(27)
Math/Physics Tutor
garbage digits are causing a round-off error which prevents them from becoming equal.
Try this:
while (a <= b)
{
puts(" Not equal ");
a += 0.1;
}
puts(" value exceeded ");