Skip to content

Conversation

@Karan-Potdukhe
Copy link
Contributor

Merge pull request #1 from Karan-Potdukhe/master

Taking kilometers input from the user

kilometers = float(input("Enter value in kilometers: "))

conversion factor

conv_fac = 0.621371

calculate miles

miles = kilometers * conv_fac
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))

Merge pull request #1 from Karan-Potdukhe/master
@Karan-Potdukhe Karan-Potdukhe marked this pull request as draft October 22, 2025 09:51
@Karan-Potdukhe Karan-Potdukhe marked this pull request as ready for review October 22, 2025 09:56
@Karan-Potdukhe
Copy link
Contributor Author

Merge pull request #1 from Karan-Potdukhe/master

Taking kilometers input from the user

kilometers = float(input("Enter value in kilometers: "))

conversion factor

conv_fac = 0.621371

calculate miles

miles = kilometers * conv_fac print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))

hacktoberfest-accepted

Copy link
Contributor Author

@Karan-Potdukhe Karan-Potdukhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hacktoberfest-accepted

@Karan-Potdukhe Karan-Potdukhe marked this pull request as draft October 22, 2025 10:02
@sksahuearth sksahuearth marked this pull request as ready for review October 23, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant