-
Notifications
You must be signed in to change notification settings - Fork 0
/
literals.go
27 lines (22 loc) · 846 Bytes
/
literals.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
Go-Pherit: A Learning Experience and personal SDK in Golang
Copyright (c) 2020 Rye Miller
https://darksociety.io
*/
package main
import "fmt"
/*
Exercise: Print the literals
1. Print a few integer literals
2. Print a few float literals
3. Print a few true and false bool literals
4. Print your name with a string literal
5. Print a non-english sentence with a string literal
*/
func main() {
fmt.Println("Integers:", 0, 1, 2, 3, 5, 8, 13) // print a few integer literals
fmt.Println("Floats:", 3.14, 9.8, 143.0) // print a few float literals
fmt.Println("Booleans:", true, false) // print a few true false literals
fmt.Println("Your Name: Rye Miller!", ) // print your name with a string literal
fmt.Println("Merhaba, adım Rye Miller!") // print a non-english (turkish) sentence with a string literal
}