Computer Science, asked by guptabhaivav, 1 month ago

how to write a programme to convert kilometers to meters when
the distance in kilometers is input by the user.The program
should display the distance in meters.
(The arithmetic formula is :- 1 km= 1000 m).

Answers

Answered by johnjoshua0210
0

Program Explanation

(km=m/1000, 1000 meter is equal to 1 kilometer) print kilometer km. (using printf statement) (since kilometer may be in fractional values like 1.2 and 5.2, it is declared & print as float.)

Answered by Simi011
1

Answer:

Program Explanation

Calculate kilometer km by dividing meter m by 1000. (km=m/1000, 1000 meter is equal to 1 kilometer) print kilometer km. (using printf statement) (since kilometer may be in fractional values like 1.2 and 5.2, it is declared & print as float.)

Explanation:

Hoppe that help you

Similar questions