package main
import "fmt"
func main() {
// Declare a variable 'message' of type string and assign the value "Hello, Go!"
var message string = "Hello, Go!"
// Print the value of the 'message' variable to the console
fmt.Println(message)
// Declare two variables 'a' and 'b' of type int and assign values
a := 5
b := 3
// Calculate the sum of 'a' and 'b' and store it in the 'sum' variable
sum := a + b
// Print the sum to the console
fmt.Println("Sum:", sum)
// Use a conditional statement to check if 'sum' is greater than 5
if sum > 5 {
fmt.Println("Sum is greater than 5")
} else {
fmt.Println("Sum is not greater than 5")
}
// Create a for loop to iterate from 1 to 3 and print the loop variable 'i'
for i := 1; i <= 3; i++ {
fmt.Println("Loop variable:", i)
}
}