Topic: To rewrite the program with PascalABC on With ++
Help to rewrite, please, the program with PascalABC on With ++.....
function outten (K:longint; s:integer):string;
var sum:string;
const A:string [16] = ' 0123456789ABCDEF ';
begin
sum: = ";
while K <> 0 do
begin
sum: = A [(K mod s) +1] +sum;
K: = K div s
end;
outten: = sum
end;