Напишу с объяснением:
n = 3;
s = 0 + 6 = 6;
n = 4;
s = 6 + 8 = 14;
n = 5;
s = 14 + 10 = 24;
n = 6;
s = 24 + 12 = 36;
n = 7
s = 36 + 14 = 50.
Program test;
<span>var n: integer; </span>
<span>begin </span>
<span>writeln(' n = '); read(n); </span>
<span>writeln(' сотен = ' , n div 100); </span>
<span>end; </span>