Opposite case

Report a typo

You get a character as input. Your task is to make the program print the opposite case version of that character.

Sample Input 1:

a

Sample Output 1:

A
Write 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
}
___

Create a free account to access the full topic