C Language program to convert inches to feet


Following program shows you how to convert inches to feet.
In this program we get inches from user, once we get those we need to divide with 12 so that we get in feet

#include <stdio.h>

int main(void) {
	float inches;

	printf("Please enter inches:");
	scanf("%f", &inches);

	float feet = inches / 12;

	printf("%f Feet", feet);
}

Output:

Please enter inches: 12
1.000000 Feet