This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String args[]){ | |
int i, j, a=0; | |
for(i = 1; i < 10; i++){ | |
for(j = 1; j < 10; j++) { | |
a = i*j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
int sum = 0; | |
Scanner scan = new Scanner(System.in); | |
int n = scan.nextInt(); | |
for(int i=0;i<=n;i++){ | |
sum = sum + i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int m; | |
int n; | |
int k=-1; | |
System.out.println("Введіть розмірність масиву m*n:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String args[]) { | |
int i, j, a = 0; | |
for (i = 1; i < 10; i++) { | |
for (j = 1; j < 10; j++) { | |
a = i * j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
int i,j,tm = 0; | |
int n=0; | |
int arr1[] = {12, 14, 5, 80, 8, 16, 40}; | |
for(j=0;j<arr1.length;j++){ | |
n++; |