Implement the object called Math with constants pi, e (Pi number and Euler's number) with an accuracy of 2 digits after the decimal point.
Objects and package objects
Create math constants
Report a typo
Sample Input 1:
Sample Output 1:
3.14
2.71Write a program in Scala 3
object Math:
// your code
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.