program CalculateDiscount;
varx, y, P, discount: integer;
beginwriteln('Enter the initial price of the t-shirt: ');readln(x);writeln('Enter the discounted price of the t-shirt: ');readln(y);
discount := x - y;P := (discount / x) * 100;
writeln('The price was reduced by ', P:0:2, '%');end.
program CalculateDiscount;
var
x, y, P, discount: integer;
begin
writeln('Enter the initial price of the t-shirt: ');
readln(x);
writeln('Enter the discounted price of the t-shirt: ');
readln(y);
discount := x - y;
P := (discount / x) * 100;
writeln('The price was reduced by ', P:0:2, '%');
end.