Enter with read (); two three-digit numbers N1 and N2 (both integer). In these numbers, the lower digits

Enter with read (); two three-digit numbers N1 and N2 (both integer). In these numbers, the lower digits were exchanged. (For example, they entered 347 and 285. After the exchange: 345 and 287). Print the received numbers and the sum of these numbers PaskalABCNET

var n1, n2, n11, n12, n13, n14, n15, n16, sum1, sum2: integer; {variable description}
begin
read (n1, n2); {reading N1, N2}
n11: = ((n1 div 100)); {search for the values of the first, second and third digits of the first number}
n12: = (n1- n11 * 100) div 10;
n13: = n1- n11 * 100 – n12 * 10;

n14: = n2 div 100; {similar with the second number}
n15: = (n2-n14 * 100) div 10;
n16: = n2-n14 * 100-n15 * 10;
sum1: = n11 * 100 + n12 * 10 + n16; {rearrange the last digits in places}
sum2: = n14 * 100 + n15 * 10 + n13;
writeln (sum1, ”, sum2, ”, sum1 + sum2); {data output}
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.