circle code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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();

12th Jul 2017, 3:29 AM
Hari krishna
Hari krishna - avatar
1 Answer
+ 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 ^^
12th Jul 2017, 5:43 AM
visph
visph - avatar