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...
The _____ option from thetoLocaleString()method indicates whether to use a thousands grouping symbol(true)or not(false).
A. style: type B. minimumSignficantDigits: num C. useGroup: Boolean D. maximumSignificantDigits: num
Computer Science & Information Technology
The Sort by button allows you to sort your files using several ____.
A. criteria B. lists C. languages D. prompts
Computer Science & Information Technology