Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class MathExpression {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. Scanner sc = new Scanner(System.in);
  6. double n = sc.nextDouble();
  7. double m = sc.nextDouble();
  8. double p = sc.nextDouble();
  9.  
  10. int b = (int) Math.round(m);
  11. double result;
  12.  
  13. double k = 128.523123123 * p;
  14.  
  15. result = (Math.pow(n, 2) + (1 / m / p) + 1337) / (n - k) + Math.sin(b % 180);
  16.  
  17. System.out.printf("%.6f", result);
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement