import java.io.IOException;
import java.text.DecimalFormat;
public class Main {
public static void main(String[] args) throws IOException {
DecimalFormat decimalFormat = new DecimalFormat("#.#");
double[] numbers = new double[]{0, 1, 2, 3};
double i = 0;
while (true){
if (i > 2) break;
System.out.println("I=" + decimalFormat.format(numbers[0]) + " J=" + decimalFormat.format(numbers[1] + i));
System.out.println("I=" + decimalFormat.format(numbers[0]) + " J=" + decimalFormat.format(numbers[2] + i));
System.out.println("I=" + decimalFormat.format(numbers[0]) + " J=" + decimalFormat.format(numbers[3] + i));
numbers[0] += 0.2;
i+=0.2;
}
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
moldalieva26/JavaNeobis
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published