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) |
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
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 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.awt.*; | |
public class task5 | |
{ | |
public static void main(String[] args) | |
{ | |
JFrame f = new JFrame(); | |
InputPanel ip = new InputPanel(); | |
int res = JOptionPane.showConfirmDialog(f, ip, "Enter data", |
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.imageio.ImageIO; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.io.File; | |
import java.io.IOException; | |
import java.text.DecimalFormat; | |
import java.util.TimerTask; |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int x; | |
for (x = 1; x <= 100; x++) | |
{ | |
if (x % 3 == 0) | |
cout << "Fuzzy"; |
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
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cout << "Vvedite chislo n" << endl; | |
cin >> n; | |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cout << "Enter n" << endl; | |
cin >> n; | |
int *arr = new int[n]; | |
int i = 0; |
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
#include "stdafx.h" | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cout << "Enter size your array(more than 4, but less than 48):" << endl; | |
cin >> n; |
OlderNewer