I am trying to print() out the two arrays but instead of displaying in a row with a \t(tab) in between each number.
it is displaying in a column and no \t.
Not sure what I am doing wrong.
for j in 0 ..< dicePossibleNum.count
print("\(dicePossibleNum[j])\t") //displays possible dice numbers
for i in 0 ..< diceResult.count
print("\(diceResult[i])\t") // displays dice results
Swift 'print()' function appends a newline by default. Try
This makes 'print()' add an empty string at the end of the line, instead of a newline. You could also try:
...which would add a tab at the end of the line.