#=
Description:  Convert string to upper case
Author: Tushar Gautam
Date: 9th Jan 2022
=#

print("Enter the string: ")

str = readline()

# Strings are immutable, hence converting it to
# array of characters
str = Vector{Char}(str)
# This would also work: str = collect(str)

# Converting to uppercase
for (i, char) in enumerate(str)
    str[i] = uppercase(char)
end

# Converting array of chars to string
str = join(str)

println(str)
