ajoute un début de cas pour roman to number en php
This commit is contained in:
9
romanToNumber/yannick-php/romanToNumber.php
Normal file
9
romanToNumber/yannick-php/romanToNumber.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
function romanToNumber(string $roman): string {
|
||||
if ($roman == 'V') {
|
||||
return '5';
|
||||
}
|
||||
return '1';
|
||||
}
|
Reference in New Issue
Block a user