Menu
Question Index
...

What will be the output of the following program?

public class FindValues {
    public static void main(String[] args) {
        double input = 90;
        System.out.print(Math.sin(input));
        System.out.println(" " + Math.round(Math.cos(input)));
    }
}


1.0 0
0 1.0
Some other output
Compilation Error
Runtime Error

Doubts

Problems

Topic: Java Math Class - java.lang.Math

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App