Exemplo n.º 1
0
 static void PrintMeterToInchList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double feet = DistanceConverter.MeterToInch(meter);
         Console.WriteLine("{0} m = {1:0.0000} feet", meter, feet);
     }
 }
Exemplo n.º 2
0
 static void PrintInchToMeterList(int start, int stop)
 {
     for (int feet = start; feet <= stop; feet++)
     {
         double meter = DistanceConverter.InchToMeter(feet);
         Console.WriteLine("{0} ft = {1:0.0000} m", feet, meter);
     }
 }