Answer:
(d) if (radius > 0) System.out.println(radius * radius * 3.14159);
Explanation:
Given
Code segment (a) to (d)
Required
Which is correct
Code segment (a): radius <=0
This means that radius is 0 or less, i.e. 0 or negative
Code segment (b): radius !=0
This means that radius is not equal to 0 i.e. it could be positive or negative but definitely not 0
Code segment (c): radius >=0
This means that radius is 0 or greater, i.e. 0 or positive
Code segment (d): radius >0
This means that radius is greater than 0 i.e. positive
<em>Hence, (d) is correct</em>
Silicon is the conductive material used in making Computer Chips. Krypton only exists in the DC Universe, Granite is a rock and Boron is used for rocket thruster ignitors and other pyrotechnic things.
Answer:
Following are the code to the given question:
x= input()#defining a variable x that inputs value from the user-end
l = x.split(" ")#defining variable l that splits the x variable value with a space
t= int(l[len(l)- 1])#defining a variable t that decrease the l length and convert the value into integer
for i in range(1, (len(l) - 1)):#use for loop to calculate the range of the list
if int(l[i]) < t:#defining if block that checks the list value is lessthan t
print(l[i])#print list values
Output:
Please find the attached file.
Explanation:
In the above-given code, an "x" variable is declared that inputs the value from the user-end, and use the "l" variable that splits all the value and defined a "t" variable that adds value into the list and convert the value into an integer.
In the next step, for loop is declared that counts the lists and use a conditional statement that checks list value is less than t and use the print the method that prints the list values.