Skip to content

Commit 4ccf2cc

Browse files
ready task 2.3
1 parent e074faf commit 4ccf2cc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
package com.calculationFormulas;
22

3+
import java.util.Scanner;
4+
35
public class calculationFormulas3 {
46

57
public static void main(String[] args) {
68

79

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);
823

924
}
1025
}
26+
// Task 2.3

0 commit comments

Comments
 (0)