Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
using namespace std; int main() { int dice = 1; while (dice <= 6) { if (dice < 6) { cout << "No Yatzy\n"; } else { cout << "Yatzy!\n"; } dice = dice + 1; } return 0; }
No Yatzy
No Yatzy
No Yatzy
No Yatzy
No Yatzy
Yatzy!