示例#1
0
 //フィートからメートルへの対応表を出力
 static void PrintFeetToMeterList(int start, int stop)
 {
     //FeetConverter converter = new FeetConverter();
     for (int feet = start; feet <= stop; feet++)
     {
         double meter = FeetConverter.ToMeter(feet);
         Console.WriteLine("{0} ft = {1:0.0000} m", feet, meter);
     }
 }
示例#2
0
 //メートルからフィートへの対応表を出力
 static void PrintMeterToFeetList(int start, int stop)
 {
     //FeetConverter converter = new FeetConverter();
     for (int meter = start; meter <= stop; meter++)
     {
         double feet = FeetConverter.FromMeter(meter);
         Console.WriteLine("{0} m = {1:0.0000} ft", meter, feet);
     }
 }