SHARE
TWEET

6.21

sudoaptinstallname Jan 23rd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.company;
  2.  
  3. /*
  4. Amon Guinan
  5. Wednesday, January 23, 2019
  6.  
  7. Random numbers between 3 and 7.
  8. Until it prints 5.
  9.  */
  10.  
  11.  
  12. import java.util.Random;
  13. public class six_twentyOne {
  14.     public static void main(String [] args)
  15.     {
  16.         Random random = new Random();
  17.         int i;
  18.         do {
  19.             i = random.nextInt(5) + 3;
  20.             System.out.print(i);
  21.             System.out.print(" ");
  22.         }
  23.         while(i!=5);
  24.  
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top