How can I change get_the_post_thumbnail to make 100% width image?

I ended up using the following to solve my problem.

<?php $image_id = get_post_thumbnail_id(); ?>
<?php $image_attributes = wp_get_attachment_image_src( $image_id, 'full');  ?>
<img src="https://wordpress.stackexchange.com/questions/65569/<?php echo $image_attributes[0]; ?>" width="100%">

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedueduseduedueduseduedusedu