Monday, June 18, 2012

Homework 4: Literals-1

1.  Write a literal representing the integer value zero.

0

2. Write a floating point literal corresponding to the value zero. 

0.0

3.  Write a literal corresponding to the floating point value one-and-a-half. 

1.5

4.  Write a literal corresponding to the value of the first 6 digits of PI ("three point one four one five nine"). 

3.14159

No comments:

Post a Comment