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 :

> Данное число 324. Как получить число 9?
>
> ср, 4 дек. 2019 г., 20:13 Hayato Kawakami :
>
>> Здравствуйте.
>> Что значит получить int 9 из int 324? Если вы разделите на 36, это будет 9, 
>> но это ожидаемый ответ?
>>
>> Hello.
>> What does it mean to get int 9 from int 324? If you divide by 36, it will be 
>> 9, but is it the expected answer?
>>
>>
>>
>> 2019年12月4日(水) 22:48 Vital Nabokov :
>>
>>> Добрый день.
>>> Задача: №1 Дано число int 324. Как получить int 9?
>>> Задача: №2 Дано число string "324". Как получить int 9?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to golang-nuts+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/golang-nuts/dda7c67a-fcc5-460a-8c76-ea43ef5b1b2c%40googlegroups.com
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAGZEK-T4wep1gs0eF%2Bfj0nEdSiGn%2BOmGke4DD-PCNzrtnxkDig%40mail.gmail.com.


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 list language for your posts, thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-WoEkAXVo%3DRNT6D9hE31b2u5K87bQX%2BOONb%2B37goW5Bug%40mail.gmail.com.