Chapter 3: Control Statements

// x is converted to integer 34 and stored in num. Note that when a . double. is converted to an . int, it is truncated. I.e., the decimal point and all digits to the right are “cut off.” The value is not “rounded” to the nearest integer. Etc. To “round” a double to the nearest integer, we … ................
................