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