Files
learning/PascalABCnet/char/char1.pas
2025-11-20 21:18:32 +02:00

12 lines
478 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.
program cha;
var c,x,y,z:char; //char - типо integer только кроме цифр есть буквы и точки
begin
z:= ('z'); // присвоил z значение "z"
WriteLn('введи x');
ReadLn(x); //читаем x
WriteLn(x+z); // складываем символы
WriteLn('4 буквы без пробелa.');
ReadLn(c,x,y,z);
WriteLn(c+x+y+z); // таким образом можно составить слово.
end.