Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 189 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 189 Bytes

if-else-statement

package main

import ( "fmt")

func main() { if num := 50; num % 2 == 0 { fmt.Println(num,"is even") } else { fmt.Println(num,"is odd") } }