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
import java.util.Arrays; | |
import java.util.Random; | |
public class task4 | |
{ | |
public static void main(String[] args) | |
{ | |
long start = System.currentTimeMillis(); | |
Random random = new Random(); | |
int[] arr = new int[1000]; |
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
import javax.swing.*; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class task2 | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner in = new Scanner(System.in); | |
String input = JOptionPane.showInputDialog("введите число 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
import javax.swing.*; | |
import java.util.Arrays; | |
public class task | |
{ | |
public static void main(String[] args) | |
{ | |
String input = JOptionPane.showInputDialog("введите число n"); | |
int n = Integer.parseInt(input); | |
int[] arr = new int[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
public class FuzzyWuzzy | |
{ | |
public static void main(String[] args) | |
{ | |
int x; | |
for (x = 1; x <= 100; x++) | |
{ | |
if (x % 3 == 0) | |
System.out.print("Fuzzy"); | |
if (x % 5 == 0) |
NewerOlder