Lab 1.
This commit is contained in:
parent
acc2d533cb
commit
a4a3e09735
|
@ -32,7 +32,7 @@ public class Lab_1 {
|
||||||
|
|
||||||
input.close();
|
input.close();
|
||||||
|
|
||||||
float s = ((float)(b + m) / 2) * (m - b + 1) * (n - a + 1);
|
float s = ((float) (b + m) / 2) * (m - b + 1) * (n - a + 1);
|
||||||
|
|
||||||
System.out.println("S = " + s);
|
System.out.println("S = " + s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue