logo image

C Language program to convert feet to inches

Views: 12

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

#include <stdio.h>

int main(void) {
	float feet;

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

	float inches = feet * 12;

	printf("%f Inches", inches);


Please enter feet: 6
72.000000 Inches