Public feed
#723981
#include <stdlib.h>
#include <time.h>
void main ()
{
time_t t;
int num, wheel, guess, bet;
srand ((unsigned) time (&t));
num= rand () % 21+1;
prinf ("Please place bet")
scanf ("%d", &bet)
printf ("Please pick a number that you think the wheel will land on")
scanf("%d", & guess);
if (num <=8)
printf ("The wheel is $1") ;
else
if (num<=14)
printf ("The wheel is $2");
else
if (num<=18)
printf ("The wheel is $5");
else
if (num<=20)
printf ("The wheel is $10");
else
if (num== 21)
printf ("The wheel is $25");
}