Пример #1
0
 //メートルからフィートへの対応表を出力
 private static void PrintMeterToFeetList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double feet = FeetConverter.FromMeter(meter);
         Console.WriteLine("{0} m = {1:0.0000}ft", meter, feet);
     }
 }
Пример #2
0
 //フィートからメートルへの対応表を出力
 private static void PrintFeetToMeterList(int start, int stop)
 {
     for (int feet = start; feet <= stop; feet++)
     {
         double meter = FeetConverter.ToMeter(feet);
         Console.WriteLine("{0} ft = {1:0.0000}m", feet, meter);
     }
 }
Пример #3
0
 static void PrintMeterToFeetList(int start, int stop)
 {
     for (int feet = start; feet <= stop; feet++)
     {
         double meter = FeetConverter.ToMeter(feet);
         Console.WriteLine($"{feet} ft = {meter:0.0000} m");
     }
 }
Пример #4
0
 static void PrintFeetToMeterList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double feet = FeetConverter.FromMeter(meter);
         Console.WriteLine($"{meter} m = {feet:0.0000} ft");
     }
 }
Пример #5
0
 static void PrintMeterToFeetList(int first, int last)
 {
     for (int meter = first; meter <= last; meter++)
     {
         double feet = FeetConverter.FromMeterToFeet(meter);
         Console.WriteLine("{0} m = {1:0.0000} ft", meter, feet);
     }
 }
Пример #6
0
 static void PrintFeetToMeterList(int first, int last)
 {
     for (var feet = first; feet <= last; feet++)
     {
         double meter = FeetConverter.FromFeetToMeter(feet);
         Console.WriteLine("{0} feet = {1:0.000} meter", feet, meter);
     }
 }
Пример #7
0
 static void PrintInchToMeterList(int start, int stop)
 {
     for (int inch = start; inch <= stop; inch++)
     {
         double meter = FeetConverter.FromInchToMeter(inch);
         Console.WriteLine("{0} inch = {1:0.0000} m", inch, meter);
     }
 }
Пример #8
0
 private static void PrintMeterToFeetList(int begin, int end)
 {
     for (int feet = begin; feet <= end; feet++)
     {
         double meter = FeetConverter.FromMeter(feet);
         Console.WriteLine($"{feet} ft = {meter.ToString("0.0000")} m");
     }
 }
Пример #9
0
 //メートルからフィートへの対応表を出力
 private static void PrintMeterToFeatList(int stat, int stop)
 {
     for (int meter = 1; meter <= 10; meter++)
     {
         double feet = FeetConverter.MeterToFeet(meter);
         Console.WriteLine("{0} m = {1:0.0000}ft", meter, feet);
     }
 }
Пример #10
0
 //メートルからフィートへの対応表を出力
 static void PrintMetertoFeetList(int start, int stop)
 {
     //FeetConverter converter = new FeetConverter();
     for (int i = start; i <= stop; i++)
     {
         double feet = FeetConverter.ToMeter(i);
         Console.WriteLine("{0} m = {1:0.0000}ft", i, feet);
     }
 }
Пример #11
0
 //フィートからメートルへの対応表を出力
 //引数:start 最初の値
 //  :stop 最後の値
 static void PrintFeetToMeterList(int start, int stop)
 {
     //FeetConverter converter = new FeetConverter(); //クラスの分離 for文の外に書く
     for (int i = start; i <= stop; i++)
     {
         double meter = FeetConverter.ToMeter(i); //クラスの分離
         Console.WriteLine("{0} ft = {1:0.0000}m", i, meter);
     }
 }