In this tutorial learn how you can convert dimension given in inch to meter. There is 0.0254 meters in1 inch.

This is a very simple program. We just need to multiply the given inches by the user by 0.0254 to get meters.

C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc.

write a c-program to convert dimension given in inch to meter


Write a Program to Convert Dimension Given in Inch to Meter

Here is the code to convert dimension given in inch to meter in C programming.

#include <stdio.h> //WAP to convert dimension given in inch to meter. (1 inch = 0.0254 m)
int main(){
double inch,meter;
printf("Enter dimension in inches:");
scanf("%lf",&inch);
meter=inch*0.0254;
printf("%lf inches equals to %lfm.",inch,meter);
return 0;
}

Test Live At Jdoodle


Conclusion

This is how you can convert dimension given in inch to meter in c programming. Comment below if you like our tutorial.