Simple expression

Report a typo

Write a program that reads four large integers a, b, c, d and produces the result of the expression below:

(-a) * b + c - d

Sample Input 1:

-9999999999999999
10000000000000000
20000000000000000
9999999999999999

Sample Output 1:

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

Create a free account to access the full topic