Guest User

Untitled

a guest
Jul 16th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import java.util.*; //imports all
  2.  
  3. class ClassNameHeresda
  4. {
  5. public static void main (String[] args)
  6. {
  7. Scanner in = new Scanner (System.in);
  8. Random rnd = new Random ();
  9. double prea = (double)(rnd.nextInt(11));
  10. double a = (double)(rnd.nextInt(11)/prea);
  11. double b = (double)(rnd.nextInt(11)/a);
  12. double c = (double)(rnd.nextInt(11)/b);
  13. double d = (double)(rnd.nextInt(11)/c);
  14. double e = (double)(rnd.nextInt(11)/d);
  15. double f = (double)(rnd.nextInt(11)/e);
  16. double g = (double)(rnd.nextInt(11)/f);
  17.  
  18. System.out.println (a +" " +b +" " +c +" " +d +" " +e +" " +f +" " +g);
  19. }
  20. }
Add Comment
Please, Sign In to add comment