go-by-test/roman/roman.go

12 lines
175 B
Go
Raw Normal View History

package roman
func ConvertToRoman(arabic int) string {
var converted string
if arabic <= 3 {
for i := 0; i < arabic; i++ {
converted += "I"
}
}
return converted
}