将米转换为厘米的程序

5 Sept 2024 | 2 分钟阅读

在这里,我们将学习如何将以米为单位的长度值转换为以厘米为单位的长度。

如果要将米的值转换为厘米值,则必须使用以下公式

程序 1:编写一个 C 语言程序,将米值转换为厘米。

以上 C 程序的输出

Value in Centimeter is: 4080.00

程序 2:编写一个 PHP 程序,将米值转换为厘米。

以上 PHP 程序的输出

Value of 10 meter in Centimeter is 1000

程序 3:编写一个 Java 程序,将米值转换为厘米。

以上 Java 程序的输出

Value in Centimeter is: 2000.00

程序 4:编写一个 Python 程序,将米值转换为厘米。

以上 Python 程序的输出

Enter the length in meter: 25
The length in centimetre is 2500