import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
double x1 = 0.0;
double y1 = 0.0;
double y2 = 0.0;
double radius = 1.5;
double increment = 0.1;
//table heading
System.
out.
println(" Points on a Circle of Radius " + radius
); System.
out.
printf("%6s%8s%8s%8s%n",
"x1",
"y1",
"x1",
"y2"); System.
out.
println(" -------------------------------------");
//for loop processes coordinates and outputs to table
for (x1 = radius; x1 >= (radius * -1); x1 -= increment){
System.
out.
printf("%7.2f%8.2f%8.2f%8.2f%n", x1, y1, x1, y2
); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZG91YmxlIHgxID0gMC4wOwogICAgICAgIGRvdWJsZSB5MSA9IDAuMDsKICAgICAgICBkb3VibGUgeTIgPSAwLjA7CiAgICAgICAgZG91YmxlIHJhZGl1cyA9IDEuNTsKICAgICAgICBkb3VibGUgaW5jcmVtZW50ID0gMC4xOwogICAgICAgIAogICAgICAgIC8vdGFibGUgaGVhZGluZwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiICAgIFBvaW50cyBvbiBhIENpcmNsZSBvZiBSYWRpdXMgIiArIHJhZGl1cyk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGYoIiU2cyU4cyU4cyU4cyVuIiwgIngxIiwgInkxIiwgIngxIiwgInkyIik7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCIgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSIpOwogICAgICAgIAogICAgICAgIC8vZm9yIGxvb3AgcHJvY2Vzc2VzIGNvb3JkaW5hdGVzIGFuZCBvdXRwdXRzIHRvIHRhYmxlCiAgICAgICAgZm9yICh4MSA9I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