Where is the Credit Card Security Code located?

For VISA/Mastercard it is a three-digit code printed on the back, at the end of signature panel.
For American Express it is a four-digit security code on the front, to the right of the card number.