Which of the following code displays the area of a circle if the radius is positive.

a. if (radius != 0) System.out.println(radius * radius * 3.14159);
b. if (radius >= 0) System.out.println(radius * radius * 3.14159);
c. if (radius > 0) System.out.println(radius * radius * 3.14159);
d. if (radius <= 0) System.out.println(radius * radius * 3.14159);

c. if (radius > 0) System.out.println(radius * radius * 3.14159);

Computer Science & Information Technology

You might also like to view...

A(n) ____ is a record of the processing activities for a particular area of the system.

A. audit record B. system log C. system file D. application

Computer Science & Information Technology

Class selectors:

a. Can be reused on other elements. b. Least preferred selecting method. c. May appear on only one element in a page. d. Make CSS longer and more complicated than necessary. e. Show at a glance if an element is unique.

Computer Science & Information Technology