#t157. 计算输出4
计算输出4
Calculation Output 4
Problem Description
Compute the result of divided by and print it.
Input Format
This problem has no input.
Output Format
Print one line containing a single real number: the result of .
Hint
- The problem has just one trap: in C++,
7 / 2is not 3.5. Why? Think about the type of the result when twointvalues are divided. - To keep the fractional part in a division, at least one operand must be written in decimal form.
- No fixed number of decimal places is required here; printing the result directly gives
3.5.