Пример #1
0
 //メートルからフィートを求める
 static void PrintMeterToFeetList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         Console.WriteLine("{0} m = {1:0.0000} ft", meter, FeetConverter.ToMeter(meter));
     }
 }
Пример #2
0
        //static FeetConverter feetConverter = new FeetConverter();

        //フィートからメートルへの対応表を出力
        static void PrintFeetToMeter(int start, int stop)
        {
            for (int feet = start; feet <= stop; feet++)
            {
                Console.WriteLine("{0}ft = {1:0.0000}", feet, FeetConverter.ToMeter(feet));
            }
        }
Пример #3
0
 private static void PrintMeterToFeetList(int start, int stop)
 {
     for (int meter = start; meter <= stop; meter++)
     {
         double feet = FeetConverter.ToMeter(meter);
         Console.WriteLine("{0} m = {1:0.0000} ft", meter, feet);
     }
 }
Пример #4
0
 static void PrintFeetMeterList(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);
     }
 }
Пример #5
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");
     }
 }
Пример #6
0
 private static void PrintFeetToMeterList(int start, int stop)
 {
     for (int feet = 1; feet <= 10; feet++)
     {
         double meter = FeetConverter.ToMeter(feet);
         Console.WriteLine("{0} ft = {1:0.0000} ft", meter, feet);
     }
 }
Пример #7
0
 private static void PrintFeetToMeterList(int begin, int end)
 {
     for (int feet = begin; feet <= end; feet++)
     {
         double meter = FeetConverter.ToMeter(feet);
         Console.WriteLine($"{feet} ft = {meter.ToString("0.0000")} m");
     }
 }
Пример #8
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);
     }
 }
Пример #9
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);
     }
 }
Пример #10
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);
     }
 }