Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- double centi_to_meter(int cm);
- int main(void)
- {
- double mm1;
- mm1 = centi_to_meter(185);
- printf("%.2lfm\n", mm1);
- return 0;
- }
- double centi_to_meter (int cm)
- {
- double mm2;
- mm2 = (double)cm / 100;
- return mm2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement