Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define CENT 0.393701
- int main (void) {
- int cm, inches;
- printf("\nEnter the whole number of centimeters to be converted to inches: \n");
- scanf("%d", &cm);
- inches = CENT * cm;
- printf("\nYour input results in: %d inches\n\n", inches);
- return 0;
- }
Add Comment
Please, Sign In to add comment