Program chastnoe;
var N, cifra;p, c, i: integer;begin
write(‘N=’);readln (N);i:=0;while N>=0 dobegincifra:= N mod 10;
i:=i+1;if i=1 then p:=cifra;if i=6 then c:=cifra;n:=n div 10;end;writeln (‘частное=’, p/c);end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Program chastnoe;
var N, cifra;p, c, i: integer;
begin
write(‘N=’);readln (N);
i:=0;
while N>=0 do
begin
cifra:= N mod 10;
i:=i+1;
if i=1 then p:=cifra;
if i=6 then c:=cifra;
n:=n div 10;
end;
writeln (‘частное=’, p/c);
end.