Answer:
1)
n = int(input("Please enter the length of the sequence: "))
print("Please enter your sequence")
product = 1
for i in range(n):
val = int(input())
product *= val
print("The geometric mean is: %.4f"%pow(product,1/n))
2)
print("Please enter a non-empty sequence of positive integers, each one is in a separate line. End your sequence by typing done:")
product = 1
val = input()
n = 0
while(val!="done"):
product *= int(val)
n += 1
val = input()
print("The geometric mean is: %.4f"%pow(product,1/n))
Explanation:
There's no "using namespace std;" statement. I see no reason for COLOR to be two dimensional or have a length of 5 with only four elements. The inside of the for loop with variable 'J' makes no sense.
Answer:
The answer is B.4 hope this helps
Answer:
Option a is the correct answer for the above question.
Explanation:
- The above question asked about the order of the result which is derived from the above query. The above query holds an order by clause in desc order which is used to produce the result in descending order.
- The descending order result is produced on the behalf of balance_due attributes and the option a also states the same. Hence option a is correct while the other is not because:-
- Other is not states that the result is produced on the behalf of descending order.
Answer:
The OSPFv3 AS number will be assigned an ID of 110
Explanation:
If we don't have ipv4 addressing previously, we are going to assign the router-id manually.
We are going to receive a message about the assignation manually.
We can assign a router-id with the next line:
#router-id 1.1.1.1
If we already have the ipv4 addressing, the router going to assign the router-id automatically.