Thank you for contacting Intel community.
For your information, EP2C20F484C7N EPM240T100C5N are still active and available. Anyhow, the life cycle is depending on its order volume and they are consider as old device. Hence they are not recommended for new design as they might be EOL soon.
You can subscribe to our customer notification mailing list at below link so that you can be notified when an Altera device is going to be discontinued.
You are recommended to use the newest CPLD and Cyclone devices for your design.