Given a floating-point variable fraction, write a statement that writes the value of fraction to standard output.

LANGUAGE: C++

CHALLENGE:

Given a floating-point variable fraction, write a statement  that writes the value of fraction to standard output.

Do not write anything else to standard output  — just the value  of fraction .

SOLUTION:

cout << fraction;

Posted in ,