mirror of
https://github.com/svek95/programming_GB.git
synced 2026-06-13 15:19:08 +03:00
add HW9
This commit is contained in:
@@ -37,7 +37,7 @@ public class Start
|
||||
Tools myTools = new Tools();
|
||||
|
||||
Console.Write("Wich task: ");
|
||||
Console.WriteLine("WH8 is 54, 56, 62");
|
||||
Console.WriteLine("WH9 is 64, 66");
|
||||
// Console.WriteLine("WH3 is 19, 23");
|
||||
int taskNumver = Convert.ToInt32(Console.ReadLine());
|
||||
switch (taskNumver)
|
||||
@@ -175,6 +175,20 @@ public class Start
|
||||
int n = Convert.ToInt32(Console.ReadLine());
|
||||
myTools.ShowInt2dArray(HW.Task_62(n));
|
||||
break;
|
||||
|
||||
case 64:
|
||||
Console.WriteLine("Input number: ");
|
||||
int number64 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Count numbers is: "+HW.Task_64(number64));
|
||||
break;
|
||||
|
||||
case 66:
|
||||
Console.WriteLine("Input M: ");
|
||||
int M = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input N: ");
|
||||
int N = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Summ is: "+HW.Task_66(M, N)+ $" between numbers {M} and {N} ");
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user