将英寸转换为米的程序

5 Sept 2024 | 2 分钟阅读

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

如果我们想将英寸值转换为米值,那么我们必须使用下面给出的 2 个公式中的 1 个。

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

输出

The value of 40 Inches in meter is: 1.016

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

输出

The value of 100 Inches in meter is: 2.54

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

输出

Value of given Inches in meter is: 0.064

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

输出

Enter the length in Inches:88
The length in meter is 2.235