Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
dice <- 1:6 for (x in dice) { if (x == 6) { print(paste("The dice number is", x, "Yahtzee!")) } else { print(paste("The dice number is", x, "Not Yahtzee")) } }
[1] "The dice number is 1 Not Yahtzee"
[1] "The dice number is 2 Not Yahtzee"
[1] "The dice number is 3 Not Yahtzee"
[1] "The dice number is 4 Not Yahtzee"
[1] "The dice number is 5 Not Yahtzee"
[1] "The dice number is 6 Yahtzee!"