pascalabcnet/TestSuite/CompilationSamples/UpLowCase.pas

23 lines
494 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Использование стандартных функций UpperCase, LowerCase
var c: char;
begin
for c:='a' to 'z' do
write(UpperCase(c));
writeln;
for c:='A' to 'Z' do
write(LowerCase(c));
writeln;
for c:='А' to 'Я' do
write(UpperCase(c));
writeln;
for c:='а' to 'я' do
write(LowerCase(c));
writeln;
var s := 'Папа у Васи силён в математике';
s := UpperCase(s);
writeln(s);
s := LowerCase(s);
writeln(s);
end.