RosettaCodeData/Task/Call-a-function/Ada/call-a-function-2.adb

6 lines
189 B
Ada
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
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