Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*; //imports all
- class ClassNameHeresda
- {
- public static void main (String[] args)
- {
- Scanner in = new Scanner (System.in);
- Random rnd = new Random ();
- double prea = (double)(rnd.nextInt(11));
- double a = (double)(rnd.nextInt(11)/prea);
- double b = (double)(rnd.nextInt(11)/a);
- double c = (double)(rnd.nextInt(11)/b);
- double d = (double)(rnd.nextInt(11)/c);
- double e = (double)(rnd.nextInt(11)/d);
- double f = (double)(rnd.nextInt(11)/e);
- double g = (double)(rnd.nextInt(11)/f);
- System.out.println (a +" " +b +" " +c +" " +d +" " +e +" " +f +" " +g);
- }
- }
Add Comment
Please, Sign In to add comment