2024-01-04 10:30:51 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2024-01-10 17:05:43 +03:00
|
|
|
"golesson/arrays"
|
2024-01-04 10:30:51 +03:00
|
|
|
"golesson/conditionals"
|
2024-01-14 00:12:27 +03:00
|
|
|
"golesson/functions"
|
2024-01-04 10:30:51 +03:00
|
|
|
"golesson/loops"
|
2024-01-10 17:05:43 +03:00
|
|
|
"golesson/slices"
|
2024-01-04 10:30:51 +03:00
|
|
|
"golesson/variables"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
variables.Demo1()
|
|
|
|
fmt.Print()
|
|
|
|
conditionals.Demo3()
|
2024-01-04 18:32:09 +03:00
|
|
|
loops.Demo5()
|
2024-01-10 11:23:21 +03:00
|
|
|
arrays.Demo4()
|
2024-01-11 11:36:53 +03:00
|
|
|
slices.Demo2()
|
2024-01-14 00:33:09 +03:00
|
|
|
functions.SayHello("Mert Gör")
|
2024-01-14 13:18:27 +03:00
|
|
|
functions.Addition(2,6)
|
2024-01-14 00:26:50 +03:00
|
|
|
var total = functions.Addition(3,8)
|
|
|
|
fmt.Println(total)
|
2024-01-14 00:30:12 +03:00
|
|
|
fmt.Println(total * 10)
|
2024-01-14 13:18:27 +03: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 10:30:51 +03:00
|
|
|
}
|