Experiment with Integers

Report a typo

You conduct an experiment with the numbers. Suppose you have an array of 5 numbers.

numbers := [5]int{65, 66, 67, 68, 69}

You want to test your assumption which states that each of these numbers is related to some specific letter in the English Alphabet. After doing some research, you found out that it is true and the letters can be obtained by converting the integers to strings.

Print the 5 letters corresponding to 5 integers of the array in the new line by using the appropriate type conversion.

Sample Input 1:

Sample Output 1:

A
B
C
D
E
Write a program in Go
package main

import "fmt"

func main() {
numbers := [5]int{65, 66, 67, 68, 69}
//put your code here
}
___

Create a free account to access the full topic