Advertisement
Guest User

Untitled

a guest
Sep 10th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5. int num = 20;
  6. int m = 0;
  7. int n = 0;
  8.  
  9. while (num < 10000000000){
  10.         n = 0;
  11.         for (m = 0; m <= 20; m++){
  12.  
  13.           if (num%m != 0){
  14.                 n = 1;
  15.                 break;     }    }
  16.  
  17.             if (n == 0 ){
  18.                 printf("%d\n", num);
  19.                 return 0;
  20.                         }
  21.     num++;
  22.                         }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement