-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSecond.go
118 lines (56 loc) · 1.27 KB
/
Second.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package main
import "fmt"
func main() {
/*fmt.Println("hellomojo")
fmt.Println("just do it")
var a int = 9
fmt.Println(a)*/
/*x:=3
fmt.Println(x)*/
/*fmt.Println("Hello, world")
fmt.Println("I'm in Go Progrmming World")*/
/*
var a1 bool = true
fmt.Println(a1)
var b2 bool = false
fmt.Println(b2)
var c3 uint64
fmt.Println(c3)
var c4 int32
fmt.Println(c4)*/
//define float variables
/*var f1 float32
fmt.Println(f1)*/
/*var a, b, c float64;
fmt.Println("a =", a, ", b = ", b, ", c = " , c)*/
/*var a float64
a = 20.0
fmt.Println(a)
fmt.Printf("a is the type of %T\n", a)*/
/*var x float64 = 20.0
y := 39
fmt.Println(x)
fmt.Println(y)
fmt.Printf("x is the type of %T\n", x)
fmt.Printf("y is the type of %T\n", y)*/
/*var a, b, c = 3, 2.9, "foo"
fmt.Println(a)
fmt.Println(b)
fmt.Println(c)
fmt.Printf("a is the of %T\n", a)
fmt.Printf("b is the type of %T\n", b)
fmt.Printf("c is the type of %T\n", c)*/
/*var x float64;
x = 23L;
fmt.Println(x)*/
/*fmt.Println("Hello\tWorld")*/
/*var s = "hello, dear"
fmt.Println(s)*/
/*const HEIGHT int = 10
fmt.Println(HEIGHT)*/
const HEIGHT int = 20
const WIDTH int = 13
var AREA int
AREA = HEIGHT * WIDTH
fmt.Printf("The area is %d", AREA)
}