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

A. if (radius <= 0) cout << radius * radius * 3.14159;
B. if (radius != 0) cout << radius * radius * 3.14159;
C. if (radius >= 0) cout << radius * radius * 3.14159;
D. if (radius > 0) cout << radius * radius * 3.14159;


D. if (radius > 0) cout << radius * radius * 3.14159;

Computer Science & Information Technology

You might also like to view...

To export data from Access to Word, you use the Mail Merge command

Indicate whether the statement is true or false

Computer Science & Information Technology

Interface Stream (package java.util.stream) is a generic interface for performing stream operations on objects. The types of objects that are processed are determined by the Stream’s ________.

a. root b. origin c. source d. start

Computer Science & Information Technology

Why are shells better suited than C programs for some tasks?

What will be an ideal response?

Computer Science & Information Technology

________ is NOT a media type option displayed in the Clip Art pane

A) Pictures B) Videos C) Illustrations D) Photographs

Computer Science & Information Technology