예제 #1
0
 private static void PrintInchToMeterList(int start, int stop)
 {
     for (int inch = start; inch <= stop; inch++)
     {
         double meter = InchConverter.ToMeter(inch);
         Console.WriteLine("{0}inch = {1:0.0000}m", meter, meter);
     }
 }
예제 #2
0
 private static void PrintMeterToInchList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double inch = InchConverter.FromMeter(meter);
         Console.WriteLine("{0}inch = {1:0.0000}m", inch, inch);
     }
 }