fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int k, m, n, o;
  7. int omega = 6*6*6*6;
  8. int a = 0;
  9.  
  10. for(k=1; k<=6; k++)
  11. for(m=1; m<=6; m++)
  12. for(n=1; n<=6; n++)
  13. for(o=1; o<=6; o++)
  14. if(k*m*n*o == 60)
  15. a++;
  16.  
  17. printf("%d/%d", a, omega);
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
60/1296