File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/com/calculationFormulas Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ public static void main(String[] args) {
8
8
9
9
Scanner scanner = new Scanner (System .in );
10
10
int x = scanner .nextInt ();
11
+ int a = scanner .nextInt ();
11
12
12
13
/*
13
14
int y = 17;
@@ -20,9 +21,11 @@ public static void main(String[] args) {
20
21
System.out.println(x1 + " " + x2);
21
22
*/
22
23
23
- int function = (int ) (17 * Math .pow (x ,2 ) - (6 * x ) + 13 );
24
+ int functionA = (int ) (17 * Math .pow (x ,2 ) - (6 * x ) + 13 );
25
+ int functionB = (int ) (3 * Math .pow (a ,2 ) + (5 * a ) - 21 );
24
26
25
- System .out .println (function );
27
+ System .out .println (functionA );
28
+ System .out .println (functionB );
26
29
}
27
30
}
28
31
// Task 2.1
Original file line number Diff line number Diff line change 1
1
package com .calculationFormulas ;
2
2
3
3
public class calculationFormulas3 {
4
+
5
+ public static void main (String [] args ) {
6
+
7
+
8
+
9
+ }
4
10
}
You can’t perform that action at this time.
0 commit comments