The following code segment is syntactically correct, but difficult to read. Rewrite the segment using indentation that improves its readability.
```
if (road_stat == 's')
if (temp > 0)
printf("Roads wet.\n");
else
printf("Roads icy.\n");
else
printf("Roads dry.\n");
```
```
if (road_stat == 's')
if (temp > 0)
printf("Roads wet.\n");
else
printf("Roads icy.\n");
else
printf("Roads dry.\n");
]
```
You might also like to view...
(Find the Two Largest Numbers) Using an approach similar to that in Exercise 3.17, find the two largest values among the 10 numbers. [Note: You must input each number only once.]
What will be an ideal response?
Personnel privacy and safety is a key area of which of the following CBK domains?
A. Physical (environmental) security B. Security architecture and design C. Legal regulations, investigations, and compliance D. Operations security
____ statements are also called equivalence statements.
A. Assignment B. Prompt C. #include D. #define
The expression "Java " + 1 + 2 + 3 evaluates to ________.
a. Java123 b. Java6 c. Java 123 d. java 123 e. Illegal expression