Skip to content

Commit a1f59ff

Browse files
committed
Adds if E.g.
1 parent f61184a commit a1f59ff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ch2/if.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
7+
i := 10
8+
9+
if i%2 == 0 {
10+
fmt.Println("Even Number")
11+
} else {
12+
fmt.Println("Odd Number")
13+
}
14+
}

0 commit comments

Comments
 (0)