We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e074faf commit 4ccf2ccCopy full SHA for 4ccf2cc
src/com/calculationFormulas/calculationFormulas3.java
@@ -1,10 +1,26 @@
1
package com.calculationFormulas;
2
3
+import java.util.Scanner;
4
+
5
public class calculationFormulas3 {
6
7
public static void main(String[] args) {
8
9
10
+ Scanner scanner = new Scanner(System.in);
11
12
+ int a = scanner.nextInt();
13
+ int x = scanner.nextInt();
14
+ int expression_A = (int) ((2 * a) + Math.sin(3 * a) / 3.56);
15
+ int expression_B = (int) (3.2 + Math.pow((1 + x),0.5) / (5 * x));
16
17
+ int function_A = (int) Math.pow(expression_A,0.5);
18
19
+ int function_B = (int) Math.sin(expression_B);
20
21
+ System.out.println(function_A);
22
+ System.out.println(function_B);
23
24
}
25
26
+// Task 2.3
0 commit comments