コード例 #1
0
 public void calcSelect()
 {
     if (dogWeight <= 20)
     {
         Console.WriteLine("You have a small dog.");
         sd.ReadData();
     }
     else if (dogWeight >= 21 && dogWeight <= 49)
     {
         Console.WriteLine("You have a medium dog");
         md.ReadData();
     }
     else if (dogWeight >= 50)
     {
         Console.WriteLine("You have a Larger dog.");
         ld.ReadData();
     }
     else
     {
         Console.WriteLine("Thanks for asking me to help!");
     }
 }
コード例 #2
0
ファイル: LabResults.cs プロジェクト: e-hamlett/CSharpFun
        public void Question6()
        {
            SmallDog dogYears = new SmallDog();

            dogYears.ReadData();
        }