Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cc50.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int
- main(void)
- {
- srand(time(NULL));
- int skittles = rand() % 1024;
- printf("%d\n", skittles);
- printf("Oi, sou a maquina falante de skittles, acerte quantas balas eu $
- do
- {
- int tentativa = getint();
- printf("Errou, tente novamente!\n");
- }while(tentativa != skittles);
- }
Add Comment
Please, Sign In to add comment