An expression with large numbers

Report a typo

Write a program that reads four large integers (a, b, c, d) and outputs the result of the expression:

(-a) * b + c - d

Input data format: a single line containing four numbers separated by spaces;

Output data format: a single line containing the result.

Sample Input 1:

-9999999999999999 10000000000000000 20000000000000000 9999999999999999

Sample Output 1:

100000000000000000000000000000001
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic