Advertisement
fbinnzhivko

02.InchesToCentimeters

Mar 7th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("inches = ");
  8.         var inches = double.Parse(Console.ReadLine());
  9.         Console.WriteLine("centimeters = {0}", inches * 2.54);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement