Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Laba6And7 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double[]x = new double[10];
- double[][]y = new double[10][10];
- for (int i = 0; i < 10; i++) {
- System.out.println("Введите X; i = " + (i + 1));
- x[i] = scanner.nextDouble();
- }
- for (int i = 0; i < 10; i++) {
- for (int j = 0; j < 10; j++) {
- y[i][j] = Math.log(Math.abs(x[i] * x[j]));
- System.out.print(y[i][j] + " ");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement