program:
#include <stdio.h>
int main()
{
float miles, kilometers;
printf("Enter distance in Miles: ");
scanf("%f", &miles);
//Formula to covert miles into km is we just have to multiply miles by 1.609
kilometers = miles*1.609;
printf("%.2f Miles = %.2f kilometers", miles,kilometers);
return 0;
}
Output: