Given that a floatingpoint variable fraction has already bee

Given that a floating-point variable fraction has already been declared and assigned a value: 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

Answer: printf(\"%f\", fraction);

printf statement is used to write standard output.

%f is the control string to display floating pointing values.

 Given that a floating-point variable fraction has already been declared and assigned a value: Write a statement that writes the value of fraction to standard o

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site