This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var n int | |
fmt.Printf("Enter year: ") | |
fmt.Scanf("%d", &n) | |
if n%4 == 0 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://neot.am | |
// Verifying if given year is leap year using switch wityout expression syntax | |
package main | |
import "fmt" | |
func main() { | |
var n int | |
fmt.Printf("Enter year: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: neotam | |
// https://neot.am | |
// MIT License | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" |
OlderNewer