In a certain code, CLOCK is written as KCOLC. How would STEPS be written in that code? *
Answers
Answered by
1
Answer:
5
Explanation:
mark as brainliest and follow me
Answered by
2
We can use (while) or (for) loop to take the word, "Clock" and reverse it as "Kcolc".
So the loop will execute 5 times.
Here is an example of a non-loop program to understand better to print the reverse of the digits.
string = "clock".
print (str[::-1])
Although here it is executed in one statement, it is because it is an inbuilt function.
If you use while loop or for loop and execute it, it will take the first letter and put it in the last. it will take the second letter and put it in the fourth place. it will take the third letter and put it in the same place. the fourth letter goes in the 2nd place and the 5th letter goes in the 1st place.
Similar questions