Assume that the following code segment is correct, except for some missing punctuation marks such as parentheses, semicolons, and brackets. Add the necessary punctuation to correct the code in such a way that the indentation does not need to be changed for readability.

```
if a > b
x = x + 10
printf("%lf\n", x)
else
printf("%lf\n", y)
printf("%lf\n", z)
```


```
if (a > b) {
x = x + 10;
printf("%lf\n", x);
} else {
printf("%lf\n", y);
printf("%lf\n", z);
}
```

Computer Science & Information Technology

You might also like to view...

What is the maximum size of all replicated files allowed within a replication group?

A. 100 GB B. 250 GB C. 100 TB D. 250 TB

Computer Science & Information Technology

A(n) ________ provides a method for unidirectional communication between one server process and many client processes.

a) named pipe b) unnamed pipe c) region of shared memory d) mailslot

Computer Science & Information Technology

Use the ________ button to control the look of a PowerPoint presentation window

Fill in the blank(s) with correct word

Computer Science & Information Technology

A custom list that you define must be based on a ________ such as text, a number, a date, or time

Fill in the blank(s) with correct word

Computer Science & Information Technology