From ad7b0175ba724056afe166aabfd54ce5c321983f Mon Sep 17 00:00:00 2001 From: Maxim Papko <125305022+idkWhatUserNameToUse@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:40:50 +0300 Subject: [PATCH] Delete laboratorna1 directory --- laboratorna1/Program.cs | 52 ----------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 laboratorna1/Program.cs diff --git a/laboratorna1/Program.cs b/laboratorna1/Program.cs deleted file mode 100644 index 7da1fe8..0000000 --- a/laboratorna1/Program.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; - -public class Lab1 -{ - public static void Main(String[] args) - { - /*o1 = + - c3 = 0 - o2 = * - c7 = short */ - - var A = 4; - short B = 3; - var N = 10; - var M = 10; - - var C = 1; - var s = 0; - - bool divisionByZero=false; - - - if ((A <= -C && -C <= N) || (B <= 0 && 0 <= M)) - { - Console.WriteLine("Division by zero!"); - return; - } - - for (int i = A; i <= N; i++) - { - if (i + C == 0) { - Console.WriteLine("Division by zero!"); - divisionByZero = true; - break; - } - for (short j = B; j <= M; j++) - { - if (j == 0) { - Console.WriteLine("Оскільки j = 0, то сума просто буде 0"); - break; - } - s += (i * j) / (i + C); - } - } - - if (!divisionByZero) - { - Console.WriteLine($"s = {s};" ); - } - - } -}