Thickmadam2321 Thickmadam2321
  • 25-01-2020
  • Computers and Technology
contestada

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.

Respuesta :

codiepienagoya codiepienagoya
  • 26-01-2020

Answer:

The statement to this question is "cout << fraction;".

Explanation:

In the given question it is declared, that a floating-point variable "fraction" is defined, which holds some value. To print this variable value in C++ program we use the print function, which is "cout". This function also used to print messages and values, in this question the print function uses the float variable "fraction", which prints variable value.

Answer Link

Otras preguntas

''Life in a city is more rewarding than life outside a city."List two or three arguments in favor of this opinion and two or three arguments opposing this opini
why did people immigrate to the United States in the late 1800s?
A pencil measures 14 cm long. How many millimeters long is it?
whats the most accurate estimation of 65+77
why did people immigrate to the United States in the late 1800s?
please explain how to solve this  On Monday,it took Helen 3 hours to do  a page of science homework exercises.The next day she did the same number of exercises
whats the most accurate estimation of 65+77
whats the most accurate estimation of 65+77
please explain how to solve this  On Monday,it took Helen 3 hours to do  a page of science homework exercises.The next day she did the same number of exercises
A pencil measures 14 cm long. How many millimeters long is it?