Friday, 10 May 2019

Go language: Write a program to print lowercase alphabets


App.go
package main

import (
 "fmt"
)

func main() {

 for start := byte('a'); start <= byte('z'); start++ {
  fmt.Print(string(start) + " ")
 }

 fmt.Println()
}

Output
a b c d e f g h i j k l m n o p q r s t u v w x y z



Previous                                                 Next                                                 Home

No comments:

Post a Comment