A four digit number A,B,C,D is called Lucky Number if A+B = C+D.
Write a Java Programm that asks the user to enter a four numbers and tell if the number is a lucky number or not
Test Cases
Input
Enter A : 3
Enter B : 7
Enter C : 1
Enter D : 9
Output
The given numbers are Lucky number
Input
Enter A : 3
Enter B : 5
Enter C : 2
Enter D : 1
Output
The given numbers are Not Lucky number
*Note that if You have compiler please solve there and click send code button or Simply use this notepad and after completing copy the code and click send code button