Write a program that determines if there are identical three-digit integers among the digits.

This is the simplest option, in which if you enter a non-three-digit number, the program will generate an error: (More or less three digits)
To solve this problem, we need:
Pascal ABC program.
Knowledge of Pascal language
var
i, a, d: integer;
s: string;
begin
writeln (‘Enter a three-digit number’);
read (s);
if (s [1] = s [2]) or (s [1] = s [3]) or (s [2] = s [3]) then
write (‘Yes’)
else
write (‘No’);
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.