Skip to content

Commit 969d55d

Browse files
author
Ashwin Hegde
committed
Merge pull request #5 from hegdeashwin/chapters
Adds if E.g.
2 parents 249d798 + a1f59ff commit 969d55d

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)