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