JulTob
5/3/2019 - 1:08 PM

weather_02.adb

with Ada.Text_IO;
procedure Weather_02 is
  type Weather is (Sunny, Rainy, Snowy, Bad);
    function Philadelphia return weather is 
    begin
        return Sunny;
    end Philadelphia;
begin
    Ada.Text_IO.Put("It's always ");
    Ada.Text_IO.Put(weather'Image(Philadelphia));
    Ada.Text_IO.Put(" in Philadelphia");
end Weather_02;