Created
November 4, 2018 22:08
-
-
Save cyberlex404/9c9d46d8c247a2eb85bbfecb2f1e474d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Project1; | |
{$APPTYPE CONSOLE} | |
uses | |
SysUtils; | |
const n=8; | |
var a,b:array[1..n] of byte; | |
i:byte; | |
begin | |
writeln('Vvedite ',n,' naturaln chisel'); | |
for i:=1 to n do | |
begin | |
repeat | |
write('a[',i,']='); | |
readln(a[i]); | |
until a[i] in [10..99]; | |
b[i]:=a[i] mod 10; | |
end; | |
writeln('Ishodn'); | |
for i:=1 to n do | |
write(a[i]:3); | |
writeln; | |
writeln('Massiv mladschih razrydow'); | |
for i:=1 to n do | |
write(b[i]:3); | |
readln | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment