Beispiel #1
0
 static void PrintMeterToInch(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double inch = InchConverter.FromMeter(meter);
         Console.WriteLine("{0} meter = {1:0.000} inch", meter, inch);
     }
 }
Beispiel #2
0
 static void PrintInchToMeter(int start, int stop)
 {
     for (int inch = start; inch <= stop; inch++)
     {
         double meter = InchConverter.FromInch(inch);
         Console.WriteLine("{0} inch = {1:0.000} m", inch, meter);
     }
 }