J
J
Julia2014-12-10 15:01:39
Perl
Julia, 2014-12-10 15:01:39

How to numerologically add the values ​​of variables in Perl?

Hello, the task is to add the numerologically numerical values ​​of the variables. For example, we have three variables: $a = 1; $b = 33; $c = 706; $d - must be equal to the numeroloic sum of numbers, i.e. 1+3+3+7+0+6 = 20
How to make it more beautiful?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
ldv, 2014-12-10
@ldvldv

If you add it numerologically, you should get the number 2.
(1 + 33 + 706) % 9 = 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question