Re: [go-nuts] Задача: Дано число int 324. Как получить 9?

2019-12-09 Thread Hayato Kawakami
Вы имеете в виду, как рассчитать сумму каждой цифры? Пример кода выглядит следующим образом. https://play.golang.org/p/Wht4jgELnTI Do you mean how to calculate sum of the each digit? The sample code is as follows. https://play.golang.org/p/Wht4jgELnTI 2019年12月9日(月) 17:40 Vital Nabokov :

Re: [go-nuts] Задача: Дано число int 324. Как получить 9?

2019-12-04 Thread Jan Mercl
On Wed, Dec 4, 2019 at 2:49 PM Vital Nabokov wrote: > > Добрый день. > Задача: №1 Дано число int 324. Как получить int 9? > Задача: №2 Дано число string "324". Как получить int 9? This mailing list is in English: https://groups.google.com/forum/#!aboutgroup/golang-nuts Please use the mailing