練習用です。いろんなものがごちゃまぜです。
| @@ -0,0 +1,17 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Text; | |
| 5 | +using System.Threading.Tasks; | |
| 6 | + | |
| 7 | +namespace chap03 | |
| 8 | +{ | |
| 9 | + class list2 | |
| 10 | + { | |
| 11 | + public static void start(string[] args) | |
| 12 | + { | |
| 13 | + Console.WriteLine($"5 / 3={5 / 3}"); | |
| 14 | + Console.WriteLine($"5 % 3={5 % 3}"); | |
| 15 | + } | |
| 16 | + } | |
| 17 | +} |
| @@ -0,0 +1,16 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Text; | |
| 5 | +using System.Threading.Tasks; | |
| 6 | + | |
| 7 | +namespace chap03 | |
| 8 | +{ | |
| 9 | + class lesson1 | |
| 10 | + { | |
| 11 | + public static void start(string[] args) | |
| 12 | + { | |
| 13 | + Console.WriteLine(3 / 2 * 2); | |
| 14 | + } | |
| 15 | + } | |
| 16 | +} |
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | { |
| 11 | 11 | static void Main(string[] args) |
| 12 | 12 | { |
| 13 | - list1.start(args); | |
| 13 | + lesson1.start(args); | |
| 14 | 14 | Console.ReadKey(); |
| 15 | 15 | } |
| 16 | 16 | } |