Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- float sum = 0;
- for (int i = 1; i <= 10000; i++) {
- sum += 1 / (float)(i * i);
- }
- System.out.println(sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement