Example in C, Static variables have a property of preserving their value even after they are out of their scope. Hence, static variables preserve their previous value in their previous scope and are not initialized again in the new scope.
How can I achieve the same functionality in Ada language where the variable is ensured to live until the end of the progran but its scope should be limited to the function hence also ensuring data coupling?