upload avatar on front end userpage

Is there a short code or php snip that can be used to show the avatar and upload option on a front end profile?