Commit b06cb2de authored by Akhil's avatar Akhil

Update greet.go

parent 31cedb97
/*In this program we will know how to use assign a constant and a variable. Variable can be assigned in different ways. We will explore the other way in next examples.
And don't worry about other syntax. Just ignore as of now.
*/
package main
import "fmt"
func main(){
const greet string
greet = "Hi, How are you doing"
const greet = "Hi, How are you doing"
fmt.Println(greet)
var good string
fmt.Scan(&good)
fmt.Printf("I am %v ", good)
fmt.Printf("I am doing %v ", good)
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment