helsinki2103

PRF192 Lab03 3

May 18th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. int main()
  5. {
  6.     float c, f, i;
  7.     printf("Enter the input value in centimeters: ");
  8.     scanf("%f",&c);
  9.     i = c / 2.54f;
  10.     f = i / 12;
  11.     printf("\n\nThe results are: \n\n%f feet \n%f inch\n\n",f,i);
  12.  
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment