Answer:
Program Print_Out_Number_as22_years;
Var
i : Integer;
Begin
For i := 1 to 100 do
Begin
If (i < 100) Then
Begin
WriteLn(i , 'years');
End;
End;
End.
Explanation:
The above program is in Pascal, and it will output 0 to 99, as 0 years, ... 99 years. And this is what is required.