I am trying to get the last round of this game to generate random numbers from 1 to 25 and the second random numbers to generate from 2 to 9 and of which the first number must be divisible by the second numbers.
i am wondering if the codes that i have created will be able to do just as the question ask.
note that: I haven't finished coding as yet
here is the codes that I have created so far.
for(i = 9; i<=10; i++)
rand = 1 + randobj.nextInt(25);
rand2 = 2 + randobj.nextInt(8);
correctans = rand / rand2;
incorrectans = 25 + randobj.nextInt(59);
while(num1 %2 != 0) would this work
if(num1 % num2 !=0)this also, will it work or do i have it wrong
System.out.println(playername+"round 3"+ "level "+ i+ "question "+i+ "you are required to match the letter with the correct answer");
System.out.println(playername+" please divide "+ rand+ " / "+ rand2);
choice = userinput.next().charAt(0);
Hello i have a script that lets the user to take a photo and then upload it -this was the thread i created https://www.daniweb.com/programming/web-development/threads/508651/how-to-open-camera-and-take-a-photo-scriptBut the photo returns in low res ...