ajoute un début de cas pour roman to number en php

This commit is contained in:
Yannick Francois
2019-04-15 23:45:23 +02:00
parent c84b4509be
commit c4d98d26d0
5 changed files with 179 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
function romanToNumber(string $roman): string {
if ($roman == 'V') {
return '5';
}
return '1';
}