This website works better with JavaScript.
Home
Help
Register
Sign In
AerScript
/
Aer
Watch
0
Star
6
Fork
0
Code
Issues
6
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Add missing variables declaration.
release/v0.1
Rafal Kupiec
1 year ago
parent
eef5ee370d
commit
2bda002259
Signed by:
belliash
GPG Key ID:
4E829243E0CFE6B4
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
tests/arab_to_roman.aer
+ 2
- 0
tests/arab_to_roman.aer
View File
@ -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);
Write
Preview
Loading…
Cancel
Save