GOLANGTESTS Telegram 251
Что выведет код?

package main

import "fmt"

func factorial(i int) int {
if i <= 1 {
return 1
}
return i * factorial(i-1)
}
func main() {
var i int = 15
fmt.Printf("Factorial of %d is %d", i, factorial(i))
}

Ответ

@golangtests
👍7👎62🔥2😁2🤯1😱1



tgoop.com/golangtests/251
Create:
Last Update:

Что выведет код?

package main

import "fmt"

func factorial(i int) int {
if i <= 1 {
return 1
}
return i * factorial(i-1)
}
func main() {
var i int = 15
fmt.Printf("Factorial of %d is %d", i, factorial(i))
}

Ответ

@golangtests

BY Go tests


Share with your friend now:
tgoop.com/golangtests/251

View MORE
Open in Telegram


Telegram News

Date: |

Done! Now you’re the proud owner of a Telegram channel. The next step is to set up and customize your channel. Activate up to 20 bots Telegram iOS app: In the “Chats” tab, click the new message icon in the right upper corner. Select “New Channel.” The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. A vandalised bank during the 2019 protest. File photo: May James/HKFP.
from us


Telegram Go tests
FROM American