How to Use Math.sin() in Java


In this example we will show you how to use Math.sin() in Java.

Source Code

package com.beginner.examples;

public class Sin {
  public static void main(String[] args){
    System.out.println(Math.sin(20)); // use Math.sin()
  }
}

Output:

0.9129452507276277
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments