Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- float c, f, i;
- printf("Enter the input value in centimeters: ");
- scanf("%f",&c);
- i = c / 2.54f;
- f = i / 12;
- printf("\n\nThe results are: \n\n%f feet \n%f inch\n\n",f,i);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment