Evaluate an expression

Report a typo

Write a program that reads four double values a, b, c, d and calculates this expression:

a * 10.5 + b * 4.4 + (c + d) / 2.2

Output the result.

Sample Input 1:

1
2.5
0
4.4

Sample Output 1:

23.5
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic