Write a program that reads a 4-digit integer, for instance, 3677. The program should separate the first two digits from the last two, and then add them. Thus in our example the program would assign 36 to a variable, let's say FIRST and then assign 77 to a second variable, let's say SECOND. Finally, it would add the sum of FIRST and SECOND (here, 36 + 77, or 113) and assign it to a third variable, let's say SUM.
The output of your program should show the 4-digit integer read, the integer
formed from the first two digits, the integer formed from the last two and then
their sum. The output must be formatted so that the numbers line up.
Hint: Use the MOD and DIV to split up the input, use the format fields to line up the output.
Enter a 4-digit number: 3677 The number entered was: 3677 The first two digits were: 36 The last two digits were: 77 Their sum is: 113