We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1323c commit ea64a7bCopy full SHA for ea64a7b
programming/sem1/lab1/1.odt
2.18 KB
programming/sem1/lab1/1.pdf
1.97 KB
programming/sem1/lab1/Lab1.class
1.77 KB
programming/sem1/lab1/Lab1.jar
1.56 KB
programming/sem1/lab1/Lab1.java
@@ -2,16 +2,16 @@
2
* Программа для первой лабы
3
*/
4
public class Lab1 {
5
- public static void main(String[] args) {
+ public static void main(String... args) {
6
long[] z = new long[14];
7
for (int i = 2; i <= 15; i++) {
8
z[i-2] = (long) i; // int -> long
9
}
10
11
float[] x = new float[12];
12
for (int i = 0; i < 12; i++) {
13
- float random_num = (float) Math.random(); // double -> float
14
- x[i] = -15 + random_num*28;
+ float randomNum = (float) Math.random(); // double -> float
+ x[i] = -15 + randomNum*28;
15
16
17
zOut(
@@ -78,7 +78,7 @@ public static float cond2(float x){
78
float result = (float) Math.tan(
79
Math.cos(
80
Math.pow(
81
- x - 1/4,
+ x - 0.25,
82
x
83
)
84
0 commit comments