Answer:
9x+y Lol use photo math :) !!
Answer:
import java.util.Random;
class Main {
public int stopAtFive (int j) {
Random rand = new Random();
int number = 0;
for(int i=0; i<j; i++) {
number = rand.nextInt(9)+1;
System.out.println(number);
if (number == 5) {
System.out.println();
break;
}
}
return number;
}
public static void main(String args[]) {
Main main = new Main();
main.stopAtFive(20);
main.stopAtFive(20);
}
}
Explanation:
Your requirements do not say what has to be displayed or returned from the method, but you can use this as a starting point.
Could you be more specific? So I can help you in the best way I can.
Answer:
You can use JavaScript, HTML, PHP and so forth.
Explanation: