Advertisement
kosmick

Untitled

Apr 4th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5. int sum = 0;
  6. int i;
  7. for(i = 1; i<8; i++)
  8. {
  9.     sum+=i;
  10.  
  11.     //printf("%d\n",sum);
  12.     int t;
  13.         for(t = 1; t<100; t++)
  14.         {
  15.    
  16.             if(sum % t == 0)
  17.                 {
  18.                
  19.                 printf("%d\n",t);
  20.                    
  21.                 }
  22.         }
  23. }  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement