fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <time.h>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. srand((unsigned int)time(NULL));
  9.  
  10. int a;
  11. int b;
  12. int c;
  13. int d;
  14. int aaa;
  15. a=rand()%10;
  16. b=rand()%10;
  17. c=rand()%10;
  18. d=rand()%10;
  19. aaa=rand()%2+1;
  20.  
  21. if(aaa==1){
  22. cout<<a<<b<<c<<d;
  23. }
  24. if(aaa==2){
  25. cout<<a<<b<<c<<d;
  26. }
  27.  
  28.  
  29.  
  30.  
  31. // your code goes here
  32. return 0;
  33. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
7861