RosettaCodeData/Task/Call-a-function/Ada/call-a-function-2.ada
2023-07-01 13:44:08 -04:00

5 lines
189 B
Ada

function F(X: Integer; Y: Integer := 0) return Integer; -- Y is optional
...
A : Integer := F(12);
B : Integer := F(12, 0); -- the same as A
C : Integer := F(12, 1); -- something different