New version of ipdr-daemon
This commit is contained in:
parent
5ae2318fb9
commit
2874926fcc
3
Lec6/go.mod
Normal file
3
Lec6/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module main.go
|
||||
|
||||
go 1.24.4
|
||||
13
Lec6/main.go
Normal file
13
Lec6/main.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var loop_var int = 10
|
||||
|
||||
for loop_var <= 20 {
|
||||
fmt.Printf("Current is %d\n",loop_var)
|
||||
loop_var++
|
||||
}
|
||||
|
||||
}
|
||||
8
Lec8/main.go
Normal file
8
Lec8/main.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
arr := [...]int{10,20,30,40}
|
||||
fmt.Println("Arr with [...]: ",arr, "Length is: ", len(arr))
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user