Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main()
- {
- int sum = 0;
- int i;
- for(i = 1; i<8; i++)
- {
- sum+=i;
- //printf("%d\n",sum);
- int t;
- for(t = 1; t<100; t++)
- {
- if(sum % t == 0)
- {
- printf("%d\n",t);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement