add practic

This commit is contained in:
2022-07-01 15:08:04 +03:00
parent fa0034a6a8
commit ab35a76153
8 changed files with 14 additions and 3 deletions
+3
View File
@@ -65,6 +65,9 @@
} }
+11 -3
View File
@@ -4,7 +4,7 @@ public class Start
{ {
static void Main() static void Main()
{ {
Console.Write("HW or Practic: "); Console.Write("HW (1) or Practic (2): ");
int taskNumver = Convert.ToInt32(Console.ReadLine()); int taskNumver = Convert.ToInt32(Console.ReadLine());
switch (taskNumver) switch (taskNumver)
{ {
@@ -68,11 +68,19 @@ public class Start
break; break;
case 3: case 3:
// Console.WriteLine();
Console.WriteLine("Input X");
int X = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Input Y");
int Y = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Quarter is: " + pract.WhereDot(X, Y));
break; break;
case 4: case 4:
Console.WriteLine("Input number: ");
int number = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Resault is:");
pract.Quad(number);
break; break;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.