From b25ceea45d1ace4b2eba381a5428099ab921e136 Mon Sep 17 00:00:00 2001
From: lesflq <119598844+lesflq@users.noreply.github.com>
Date: Sun, 26 Feb 2023 13:15:56 +0200
Subject: [PATCH] Add files via upload
---
lab1/lab1.iml | 11 ++++++++
lab1/out/production/lab1/Main.class | Bin 0 -> 2287 bytes
lab1/src/Main.java | 38 ++++++++++++++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 lab1/lab1.iml
create mode 100644 lab1/out/production/lab1/Main.class
create mode 100644 lab1/src/Main.java
diff --git a/lab1/lab1.iml b/lab1/lab1.iml
new file mode 100644
index 0000000..9465dd8
--- /dev/null
+++ b/lab1/lab1.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab1/out/production/lab1/Main.class b/lab1/out/production/lab1/Main.class
new file mode 100644
index 0000000000000000000000000000000000000000..861d9695e449b1cf1ee37e07c0835af9da0dda79
GIT binary patch
literal 2287
zcmb7F-)|IE6#i~IyED6;ZlPtD77MNvuu!3(NbN5awp5B+ifjcD6z*<^cG}&U&F+*)
zVq$_2k(l@+1WgR_0TN!J0!0uWeAB1d7vm$3`Y#Y8es{N#ty_(3a_63V&bi+?_dDm_
z{rS(k4*>KaA4UwlA@rf&z(5#-*s0@HwSFy(0CuU*ZUYGeLk9MQ5XEp9&3L_;yWddm
zNduz>_Ujlka6p;f)NxQpN+2?{CowX*D|vi)?BM9Gae=nvv^*udJ?nk1d&tVzIhh@H
z3pwfa3j_yj$M$v#)OT(?B%meS2}__UX*<^b*<9KxjLUSEn&zaNk=aACV5{|lQuC(l
zA~BMq(sl@@ShuU;4NFoBqwxrP7(wr*VJIzg{};--`S5
z{(Xuc(|X^(U-~RA`{Ftdn|K>X1eTX+ug>4ZJ2!ZCx-b4z{<)|0clzQc
zR-)C!ahwoXw%c{RqF0dlQOlchCyGr$NCRmT8BCb4)Bz9pU;X3!{^xQ32QqRo?%ybV
zR666|iSLYW4gVj%fx$RyH&)}iyB2Y9DacwsBC;)3{!8<-1v|EMbf{|ZD4HrhPhEB{
z_w87E+RAu~RH@TN&mv^KJ4-{f(x0~5eSjVAvCl1;V~4hsF&3)@0(s@cU7btcjXD+n
z3FL^ApM3(^y0D3$)dqE^bcfe^L?QDA^Iil`man!7G_+Jve!i#Cp*&Ra{k
zSHDM<7U-|0aRDMBv)PpGS^YX(f%P@#TPin!HUI60=lIOW_`nOSQa6!OJ!QT{{651~
zH)p{)uxTFR28BAb^BXKHHLRv=RvfSf&vF$)oS@~+b*(V4jJn_FP}f|48`?btj?5uA
z4?Wp+8^)m0hZgDgZ>D~SrVQalhQ2^sK$(Kd)Uep3x9Q4cM0!Koj)tiA4ea))aRr&E
z77bp(v3Bh$4!57{F=J-bICt?fwnw#dJ&{->8dR&*t)ZA1i`W-pX4tymW_m-hNLcnn
zu04K8jqEY6J^qPN=U}!n*~Ytw0JqU}4J|5{WfaxCoU&xVyCH5tBP}9K(=lN&8j*_WJr^g1)E%*h`qmw0RMF|_Ri6!j91CCDSx(#>m0(Ba*
zxr)uy1(?%iY@sg5tUh4}bV6rtXRwtzgBgCvT`#iGIedVZsB6G>#_2-vF%vL#ysRT2
zsz<%hfIrZvJ;K^YFrrO_+3|Oat!EnQ*LV-jN19vavEn= 0 && a <= n && b <= m && a > 1) {
+ for (long i = a; i <= n; i++) {
+ for (long j = b; j <= m; j++) {
+ S += (double) (i * j) / (i - C);
+ }
+ }
+ System.out.println("Значення S = " + DECIMAL_FORMAT.format(S));
+ } else {
+ System.out.println("Значення А має бути > 0\nЗначення А має бути <= n");
+ System.out.println("Значення B має бути >= 0\nЗначення B має бути <= m");
+ }
+
+ }
+}
\ No newline at end of file