Add missing variables declaration.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
eef5ee370d
commit
2bda002259
|
@ -8,6 +8,8 @@ class Program {
|
|||
'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1};
|
||||
|
||||
int $matches;
|
||||
string $roman;
|
||||
int $value;
|
||||
foreach($lookup as $roman => $value) {
|
||||
$matches = (int) ($n / $value);
|
||||
$result += str_repeat($roman, $matches);
|
||||
|
|
Loading…
Reference in New Issue