Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+14 votes

how would we approach BJP4 Exercise 5.4: randomX

asked in CSC211_Winter2018 by (8 points)

1 Answer

+5 votes

You have to use both a while loop and a for loop. Inside of the while loop you should be generating a random value and printing out "X" that random number of times. Just think of what condition you want the while loop to check and you should be good.

answered by (8 points)
...