SATURN
+ URANUS
= PLANETS
are called cryptorithms or alphabetical coding. Where an alphabet is assigned a code so that the problem is to be solved using given summation. Write a program to solve such questions, which prints the letter and its corresponding digits that satisfy the given addition.
Answers
Answered by
12
Answer:
8 7 3 4 9 0
4 9 7 0 4 8
1 3 7 0 5 3 8
Explanation:
SATURN
+ URANUS
= PLANETS
N + S = S => N = 0
U + N = E => U + 0 = E => there must be a carry
=> U + 1 = E
A + R = A => There must be a carry
=> A + R + 1 = 10 +A
=> R = 9
P is Carried => P = 1
R + U = T
=> 9 + U = T
=> 9 + U = 10 + T
=> U = T + 1
S + U + 1 = 10 + L
Using all above data and a bit of hit & Trial we can get
S = 8 A = 7 T = 3 U=4 R = 9 N = 0
U = 4 R = 9 A = 7 N = 0 U = 4 S = 8
P = 1 L= 3 A=7 N = 0 E = 5 T = 3 S = 8
8 7 3 4 9 0
4 9 7 0 4 8
1 3 7 0 5 3 8
Similar questions