Ints and floats

This commit is contained in:
milan 2026-08-29 08:50:29 +02:00
commit 5018a50e37
3 changed files with 52 additions and 0 deletions

4
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,4 @@
{
"editor.inlineSuggest.edits.allowCodeShifting": "never",
"editor.inlineSuggest.enabled": false
}

BIN
main Executable file

Binary file not shown.

48
main.go Normal file
View 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)
}