Anonymous user
Execute HQ9+/Ada: Difference between revisions
Implemented Accumulator
(Created page with "{{implementation|HQ9+}}{{collection|RCHQ9+}} the language specs of HQ9+ don't tell what is meant by "accumulator". therefore it is not possible to tell if it is implemented ...") |
(Implemented Accumulator) |
||
Line 1:
{{implementation|HQ9+}}{{collection|RCHQ9+}}
<lang Ada>with Ada.Text_IO;
Line 18 ⟶ 16:
procedure Interpret_HQ9Plus (Input : in String) is
Accumulator : Natural := 0;
begin
for I in Input'Range loop
Line 28 ⟶ 27:
Bottles;
when '+' =>
when others =>
null;
|