<?php
$userid = new WP_User( $user_id );
if ( !empty( $userid->roles ) && is_array( $userid->roles ) ) {
	foreach ( $userid->roles as $role )
		echo $role;
}
?>