A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
9
Task/Integer-sequence/Go/integer-sequence-1.go
Normal file
9
Task/Integer-sequence/Go/integer-sequence-1.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
for i := 1;; i++ {
|
||||
fmt.Println(i)
|
||||
}
|
||||
}
|
||||
13
Task/Integer-sequence/Go/integer-sequence-2.go
Normal file
13
Task/Integer-sequence/Go/integer-sequence-2.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"big"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
one := big.NewInt(1)
|
||||
for i := big.NewInt(1);; i.Add(i, one) {
|
||||
fmt.Println(i)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue