- 3
circle code
import java.util.Random; /* * * A program to print a circle randomly without any use * of graphics. * * ProTip : Try running it more than once ;] * * Author : Dayve * Feel free to copy the idea ( not the code ). * */ class Program { public int path(int x, int y) { return ((int)Math.sqrt(Math.pow(x,2)+Math.pow(y,2))); } public static void main(String[] args) { Program obj = new Program(); // Getting into the random stuff Random rnd = new Random();
1 Odpowiedź
+ 2
What's the use of posting incomplete "code of the day"?
Do you have question about it?
So, ask to author directly, by posting human sentences on the comments of this code ^^