Average

Report a typo

Write a program that reads three large rational numbers and finds an average.

Print the result with a discarded whole fractional part.

Tip: Use DOWN mode.

Sample Input 1:

4
2
6

Sample Output 1:

4

Sample Input 2:

34364356335.00000001
-6
100000000000000000000.000000000000001

Sample Output 2:

33333333344788118776
Write a program in Kotlin
import java.math.BigDecimal
import java.math.RoundingMode

fun main() {
// write your code here

}
___

Create a free account to access the full topic