Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MathExpression {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- double n = sc.nextDouble();
- double m = sc.nextDouble();
- double p = sc.nextDouble();
- int b = (int) Math.round(m);
- double result;
- double k = 128.523123123 * p;
- result = (Math.pow(n, 2) + (1 / m / p) + 1337) / (n - k) + Math.sin(b % 180);
- System.out.printf("%.6f", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement