问题4288--Print out the results of the expressions

4288: Print out the results of the expressions

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 128 MB

题目描述

Write a program to print out the results of the following integral and floating-point expressions. For
floating-point expressions, print out the results with both 6 and 20 digits afer the decimal point.

(a) 2*3, (b) 1/5, (c) 1/2, (d) 3/2, (e) 1/3, (f) 2/3, (g) 1.0/5, (h) 1.0/2, (i) 3.0/2, (j) 1.0/3

来源/分类