Which of the following segments is a proper way to call the method readData four times?

a.
```
double k = 0.0;
while (k != 4) {
readData();
k = k + 1;
}
```
b.
```
int i = 0;
while (i <= 4) {
readData();
i = i + 1;
}
```
c.
```
int i = 0;
while (i < 4) {
readData();
}
```
d.
```
while (i < 4) {
readData();
i = i + 1;
}
```

d.
```
while (i < 4) {
readData();
i = i + 1;
}
```

Computer Science & Information Technology

You might also like to view...

Events identify conditional statements

Indicate whether the statement is true or false

Computer Science & Information Technology

Pro Word Cloud is an example of an Office ________

Fill in the blank(s) with correct word

Computer Science & Information Technology