Ints and floats
This commit is contained in:
commit
5018a50e37
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"editor.inlineSuggest.edits.allowCodeShifting": "never",
|
||||
"editor.inlineSuggest.enabled": false
|
||||
}
|
||||
48
main.go
Normal file
48
main.go
Normal file
@ -0,0 +1,48 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
|
||||
//fmt.Println("hello, niggas")
|
||||
|
||||
//strings
|
||||
// var nameOne string = "mario"
|
||||
// var nameTwo = "luigi"
|
||||
// var nameThree string
|
||||
|
||||
// fmt.Println(nameOne)
|
||||
// fmt.Println(nameTwo)
|
||||
// fmt.Println(nameThree)
|
||||
|
||||
// nameOne = "peach"
|
||||
// nameThree = "bowser"
|
||||
|
||||
// fmt.Println(nameOne)
|
||||
// fmt.Println(nameTwo)
|
||||
// fmt.Println(nameThree)
|
||||
|
||||
// nameFour := "toad"
|
||||
|
||||
// fmt.Println(nameFour)
|
||||
|
||||
// Ints
|
||||
ageOne := 20
|
||||
ageTwo := 30
|
||||
ageThree := 40
|
||||
|
||||
fmt.Println(ageOne, ageThree, ageTwo)
|
||||
|
||||
//bits and memory
|
||||
|
||||
// var num1 int8 = 25
|
||||
// var num2 int8 = -128
|
||||
// var numThree uint8 = 255
|
||||
|
||||
var score1 float32 = 25.98
|
||||
var score2 float64 = 67395734579345934859384753.2349737649723649
|
||||
score3 := 1.5
|
||||
|
||||
fmt.Println(score1, score2, score3)
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user