Guest User

Untitled

a guest
Nov 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define CENT 0.393701
  4.  
  5. int main (void) {
  6.   int cm, inches;
  7.  
  8.   printf("\nEnter the whole number of centimeters to be converted to inches: \n");
  9.   scanf("%d", &cm);
  10.   inches = CENT * cm;
  11.   printf("\nYour input results in: %d inches\n\n", inches);
  12.   return 0;
  13. }
Add Comment
Please, Sign In to add comment