To take a screenshot on an Samsung Galaxy A40 phone, you must press the Power key and the Volume down button at the same time.
For Samsung phones, there is an original way to take a screenshot, this is to hold the edge of your hand across the phone screen from left to right.
Your screenshot will be saved to the gallery. This screenshot can be used as a photo for posting on social networks or transfer using instant messengers.