gokursu/main.go

32 lines
619 B
Go
Raw Normal View History

2024-01-04 07:30:51 +00:00
package main
import (
"fmt"
2024-01-10 14:05:43 +00:00
"golesson/arrays"
2024-01-04 07:30:51 +00:00
"golesson/conditionals"
2024-01-13 21:12:27 +00:00
"golesson/functions"
2024-01-04 07:30:51 +00:00
"golesson/loops"
2024-01-10 14:05:43 +00:00
"golesson/slices"
2024-01-04 07:30:51 +00:00
"golesson/variables"
)
func main() {
variables.Demo1()
fmt.Print()
conditionals.Demo3()
2024-01-04 15:32:09 +00:00
loops.Demo5()
2024-01-10 08:23:21 +00:00
arrays.Demo4()
2024-01-11 08:36:53 +00:00
slices.Demo2()
functions.SayHello("Mert Gör")
2024-01-14 10:18:27 +00:00
functions.Addition(2,6)
2024-01-13 21:26:50 +00:00
var total = functions.Addition(3,8)
fmt.Println(total)
2024-01-13 21:30:12 +00:00
fmt.Println(total * 10)
2024-01-14 10:18:27 +00:00
result1, result2, result3, result4 := functions.MathOps(10,2)
fmt.Println("Add :", result1)
fmt.Println("Subtract :", result2)
fmt.Println("Multiply : ", result3)
fmt.Println("Divide : ", result4)
2024-01-04 07:30:51 +00:00
}