Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- float inch = 0;
- float milimeters, centimeters, decimeters;
- printf("Enter inches: ");
- scanf("%f", &inch);
- milimeters = inch * 25.4;
- centimeters = inch * 2.54;
- decimeters = inch * 0.254;
- printf("%f milimeters\n", milimeters);
- printf("%f centimeters\n", centimeters);
- printf("%f decimeters\n ", decimeters);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement