Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- for (int i = 1; i <= 100; i = (int)pow((sqrt((double)i)+1), 2))
- {
- printf("%i, ", i);
- // 1, 4, 9, 16, 25, 36, 49, 64, 81, 100
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement