Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
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 (1 point)

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 (1 point)
...