diff --git a/lib/roman_numerals.dart b/lib/roman_numerals.dart index ef9f436..a962a11 100644 --- a/lib/roman_numerals.dart +++ b/lib/roman_numerals.dart @@ -3,7 +3,12 @@ String integerToRoman(int number) { for (int i = 0; i < number; i++) { if (number == 5) { result += 'V'; - break; + return result; + } + + if (number == 4) { + result += 'IV'; + return result; } result += 'I';