Go Program to Swap Two Numbers

Write a Go program to swap two numbers using a temp variable and without using a temporary variable. In the below example, we allow users to enter two variables and use the temp variable to swap them. package main import “fmt” func main() { var a, b, temp int fmt.Print(“Enter the First = “) fmt.Scanln(&a) … Read more