Home » JAVA Programming » Methods » Question
  1. What is the output of this program?
    public class Result
    {
    public static void main(String args[])
    {
    double num =3.14;
    int p = (int) Math.toRadians(num);
    System.out.print(p);
    }
    }
    1. 0
    2. 1
    3. 3.14
    4. 3
    5. None of these
Correct Option: A

0



Your comments will be displayed only after manual approval.