hi
just wondering if anyone can help me out.
i need to create a loop to display 50 roll of two dice??
i keep getting an infinate loop and i don't know how to limit it to 50.....
hi
just wondering if anyone can help me out.
i need to create a loop to display 50 roll of two dice??
i keep getting an infinate loop and i don't know how to limit it to 50.....
You just keep a counter. Something like this:
int count=1;
while (count<51){
<dice rolling bit here>
count++;
}
thanks for that it was staring me right in the face i just didnt see
cheers
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.