Enter the length in inch and display in form of feet and inch
#include<stdio.h>
main(){
int a,b,c; //The variable a,b and c are in integer as the inch can't be in decimal
printf("Enter the length in inch: ");
scanf("%d",&a);//Enter the length in inches
b = a/12;//b is the value in feet
c = a%12;//c is the value in inch
printf("feet: %d",b);
printf("inch: %d",c);
}