FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 60   



Following program shows you how to convert given string to lower case.
In this program we get string from user and convert that string into lower case using strings.ToLower()

package main

import "fmt"
import "strings"

func main() {

  var input string
  var lowerCase string
  fmt.Println("Please enter the string:")
  fmt.Scanf("%s", &input)
  lowerCase = strings.ToLower(input)
  fmt.Println("Given string in lower case: " , lowerCase)
}

Output:

Please enter the string:
 HELLO
Given string in lower case:  hello



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News