You get a character as input. Your task is to make the program print the opposite case version of that character.
Unicode package
Opposite case
Report a typo
Sample Input 1:
aSample Output 1:
AWrite a program in Go
package main
import (
"fmt"
"unicode"
)
func main() {
var word string
fmt.Scan(&word)
symbol := []rune(?)[0]
if unicode.IsUpper(?) {
fmt.Println(string(unicode.ToLower(?)))
}
// add IsLower statement by yourself
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.