fork download
  1. #include <stdio.h>
  2.  
  3. const unsigned short MAX = 20;
  4.  
  5. int main(int argc, char const *argv[]) {
  6.  
  7. unsigned long int number = 0;
  8.  
  9. while (1)
  10. {
  11. unsigned short dividers = 0;
  12.  
  13. number++;
  14.  
  15. for (unsigned short i = 1; i <= MAX; i++)
  16. {
  17. if (number % i == 0) {
  18. dividers++;
  19. } else {
  20. break;
  21. }
  22. }
  23.  
  24. if (dividers == MAX) {
  25. printf("Numero:%d\n", number);
  26. break;
  27. }
  28. }
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 3.17s 9432KB
stdin
Standard input is empty
stdout
Numero:232792560