Advertisement
Guest User

Untitled

a guest
Sep 26th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Main {
  2.  
  3.  
  4.  
  5. public static void main(String[] args) {
  6. // write your code here
  7.  
  8. Scanner scan = new Scanner(System.in);
  9. int n;
  10. System.out.println("UNESITE N");
  11. n=scan.nextInt();
  12.  
  13. double result=1/(Math.pow((2*n+1),2));
  14. System.out.println(result);
  15.  
  16.  
  17. }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement