Computer Science, asked by jahanvi9514, 1 year ago

In a certain language bat is coded as 2012, ball is coded as 121212, what is will be the code of bowler?

Answers

Answered by zanaya
90

The position of each alphabet in the word is written but in the reverse order. Like the position of alphabets in the word bowler is 2,15,23,12,5,18. So,the bowler's code is 1851223152

Answered by Arslankincsem
2

Here is how it goes-starting from the last character of the word, take the previous letter from English alphabets.

Solve the problem as per mentioned below-

T = 20

= 2120

Here, the digits are written in reverse order.  

where,  BAT = 2012

Code of BALL is 121212

B = 2

A = 1

L = 12

L = 12

= 211212

digits written in reverse order here

Therefore, BALL = 121212

Code of BOWLER will be - 1851223152

B = 2

O = 15

W = 23

L = 12

E = 5

R = 18

= 2152312518

change the order of numbers.

Therefore, BOWLER = 1851223152

Similar questions