Jump to content

Floyd's triangle: Difference between revisions

m
Line 21:
procedure Floyd_Triangle is
 
Rows: constant Positive := Integer'Value(Ada.Command_Line.Argument(1));
Current: Positive := 1;
Last_Number:constant Positive := (Rows * (Rows+1)) / 2;
CurrentWidth: array(1 Positive.. :=Rows) 1of Positive;
Width: array(1 .. Rows) of Positive;
 
begin
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.