Write an algorithm that inputs length in inches and calculates and prints it in centimeters.

Convert inches to centimeters

Problem Statement: Input a length in inches and convert it into centimeters (1 inch = 2.54 cm).

Algorithm:

  1. Start
  2. Input the length in inches (inches).
  3. Convert the length to centimeters using the formula: centimeters=inches×2.54\text{centimeters} = \text{inches} \times 2.54
  4. Display the length in centimeters.
  5. End

Explanation: To convert inches to centimeters, we multiply the length in inches by 2.54. This is a direct conversion from the imperial system to the metric system.