Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float inch, mm,cm,dm,m;
- printf("\nEnter length in Inch: ");
- scanf("%f", &inch);
- cm = inch * 2.54;
- mm = inch * 25.4;
- dm = inch * 0.254;
- m = inch * 0.0254;
- printf("\nEquivalent length in Centimeters = %0.2f", cm);
- printf("\nEquivalent length in Millimeters = %0.2f", mm);
- printf("\nEquivalent length in Decimeters = %0.2f", dm);
- printf("\nEquivalent length in Meters = %0.2f", m);
- return 0;
- }
Add Comment
Please, Sign In to add comment