fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5.  
  6. int main(void){
  7. int r;
  8. srand(time(NULL));
  9. rand();
  10. rand();
  11. r = rand();
  12. if(r%3==0){
  13. printf("Hello\n");
  14. }else if(r%3==1){
  15. printf("Bye\n");
  16. }else if(r%3==2){
  17. printf("Bye\n");
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
Bye