Advertisement
Spocoman

04. Inches to Centimeters

Aug 21st, 2024
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. namespace InchesToCentimeters
  2. {
  3.     class Program
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             double inches = double.Parse(Console.ReadLine());
  8.  
  9.             double centimeters = inches * 2.54;
  10.  
  11.             Console.WriteLine(centimeters);
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement