Answer:
i would say the first one
Explanation:
<span>'m pretty sure the big O is actually O(log n)
Not really a proof but anyway.
If you write out the values before each iteration of the loop you get.
L - iteration number
L i t
1 1 0
2 1 2
3 3 6
4 9 18
5 27 54
6 81 162
So if n was 80 it would take 6 iterations
You can see i is growing like 3^(L-2)
So if n was 1000
1000 = 3^(L-2)
log(1000) [base 3] = L - 2
log(1000) [base 3] + 2 = L
8.287709822868152 = L
and if you ceil the answer you get L = 9
and just to check with the table
6 81 162
7 243 486
8 729 1458
9 2187 ...
The table isn't perfect but hopefully you get the main idea.</span>
Answer:
Following are the steps is used by the Ruth-Anne to created the document is given below .
Explanation:
Microsoft word is used for creating the document in the well manner .There are various types of toolbars ,function,etc are present in the Microsoft word that is used for managing and creating the document in the well formatted manned .Now following are the document that the Ruth-Anne is used is given below.
Step 1: Move to the page 3 .
Step 2: Select the option page Layout and pressing the columns.
Step 3: Select the two column in which Ruth-Anne providing the desired format.
#accepting input from user
n=int(input("Enter a number: "))
#entered number is stored in a temporary variable
temp=n
#initializng required variables
rev=0
dgt=0
#digits are reversed inside while loop
while(n>0):
dgt=n%10
rev=rev*10+dgt
n=n//10
#original number and its reverse are compared
if(temp==rev):
#if equal, it's a palindrome
print("It is a Palindrome")
else:
#if not equal, it's not a palindrome
print("It is not a Palindrome")
#◌⑅⃝●♡⋆♡Nåmřāthā♡⋆♡●⑅◌
The protocol that's used to encrypt data as it travels a network would be the IPSec.