In this c program, we will convert distance input by the user in meters, feet, inches, and centimeters. We will also write the algorithm of c program to convert distance in meters, feet, inches, and centimeters. We will firstly breakdown the problem and write an algorithm, then after that, we will write the c program and obtain the required output.
We need to take distance (in kilometers) from the user in kilometers and then convert it into meters, feet, inches, and centimeters and display as an output on the screen.
Given below is a C program to convert km in feet, meter, inch, cm:
Logic to calculate simple interest:
Write a program to calculate simple interest. How to calculate simple interest in C programming
Write a C program to input base and height of a triangle and find area of the given triangle. How to find area of a triangle in C programming. Logic to find area of a triangle in C program.
C Program to find Area Of a Triangle using base and height
This program allows the user to enter the base and height of a triangle, and then finds the area of a triangle using those two values