MATLAB CODE:
%%%%
clc
dist_mile=input('enter the distance in miles') %%%dist_mile stores given distance in miles
dist_km=dist_mile*1.6093 %%coversion of dist_mile into km and storing in dist_km
%%%%
OOUTPUT:
enter the distance in miles
2
dist_km
3.2186