C Programming Tutorial - 14: Distance Conversion Program

preview_player
Показать описание
In this tutorial we'll write a program that asks the user to input distance in miles and would convert the distance in kilometers, feet and inches.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

can you help me

Write a program and createc++ a function that will allow to return a value of each metric unit of conversion below:
Where:

1 meter (m) = 1000 millimeters (mm)

1 meter (m) = 100 centimeters (cm)

1Kilometer (km) = 1000 meters (m)

1 gram (g) = 1000 milligrams (mg)

1 kilogram (kg) = 1000 grams (g

markfredjalandoni
Автор

If I change the type float to double keeping all the other parameters, I am getting crazy results with negative values also. Can you please clarify.

venkat
Автор

Sit I am not getting output screen when i press build and run in code blocks.

anjankailash
visit shbcf.ru