Computer Science, asked by andrewkevin1234567, 7 months ago

Write a program to calculate the distance of 25 kilometres in terms of miles and in terms of feet (1 km = 0.621 miles, 3280.83 feet​

Answers

Answered by swastikrout1973
0

Here is the python code:-

dis = 25

print(f'Mile: {dis*0.621}\nFeet: {25*3280.83}')

Answered by imtiyazallam
0

Answer:

Ruby code:

#Method

def distance

   dis = 25.0

   mile = dis * 0.621

   feet =dis * 3280.83

   puts ("Distance in terms of mile: " + mile.to_s)

   puts ("Distance in terms of feet: " + feet.to_s)

end

#method call below

distance

Similar questions