From 5c9962eb6102d4bd17915807188301bea62c0170 Mon Sep 17 00:00:00 2001 From: fiatcode Date: Tue, 10 Feb 2026 08:22:39 +0700 Subject: [PATCH] GREEN: return hardcoded "IV" for 4 --- lib/roman_numerals.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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';