Solution:
Since no language was specified, this will be written in Python.
n1, n2, n3 = input ("Enter three names: ").split()
print(n3)
print(n2)
print(n1)
Cheers.
Answer:
print("It's snowing")
Explanation:
since it a string you need put quotation marks the code does not understand just (It's snowing) because it thinks it variable which it is not
Answer:
Explanation:
There are two loops in the given code snippet:
1. Both the loops are nested
2. The outer loop which is for loop is running n number of times linearly.
3. The inner loop which is while loop is jumping in the power of 2, which makes it run log n number of times.
So the overall complexity of the code will be= n * log n
Time complexity(or upper bound)= O(n log n).
Hit the thumbs up if you liked the answer. :)