Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <time.h>
- int main(){
- int x ,y;
- srand(time(NULL)); // e
- x = rand()%10+1;
- //printf("%d",x);
- printf("Adivina un numero: ");
- scanf("%d",&y);
- if(x == y){
- printf("numero adivinado\n");
- }
- else printf("pierdes\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement