What is wrong with the following loop?

While (sum <= 1000) {
sum = sum + 30;
}
a) The parenthesis should be braces.
b) The braces around sum = sum +30; should be removed.
c) While should be while.
d) There should be a semicolon after While (sum <=1000).

c) While should be while.

Computer Science & Information Technology

You might also like to view...

A single USB port can have a maximum of _____ hubs attached

Fill in the blank(s) with correct word

Computer Science & Information Technology

Briefly describe an entry in a routing table from a router.

What will be an ideal response?

Computer Science & Information Technology