C program to convert centimeter to Inches
C Programming Language / Overview of C Language
1908Program:
// C program to convert centimeter to Inches #include // Function to perform conversion double Conversion(int centi) { double inch = 0.3937 * centi; printf ("Inches is: %.2f \n", inch); return 0; } // Driver Code int main() { int centi = 10; Conversion(centi); return 0; }
Output:
Inches is: 3.94
Explanation:
Formula: double inch = 0.3937 * centi;
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS