Advertisement
Guest User

Untitled

a guest
May 26th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include<string.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5.  
  6.  
  7.  
  8. srand(time(NULL));
  9.     numero_aleatorio1 = (rand() % 15);
  10.     srand(time(NULL));
  11.     numero_aleatorio2 = (rand() % 15);
  12.     if(numero_aleatorio1 == i){ printf("Saliendo\n"); return 0;
  13.     }
  14.     else if(numero_aleatorio2 == j){ printf("Saliendo\n"); return 0;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement