Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
![](https://rs.olm.vn/images/avt/0.png?1311)
Cho xâu S1=‘Ha Noi ’; xâu S2 =‘Viet Nam’.
Kết quả của thủ tục Insert(s1,s2,6) là:
A. ‘Viet Ha Noi Nam’ B. ‘Viet Ha NoiNam’
C. ‘VietHa Noi Nam’ D. ‘VietHa NoiNam’
![](https://rs.olm.vn/images/avt/0.png?1311)
Program HOC24;
var s: string;
i: byte;
begin
write('Nhap xau :'); readln(s);
for i:=1 to length(s) do if s[i]<>'a' then write(s[i]);
readln
end.
uses crt;
var st:string;
i,d:integer;
begin
clrscr;
write('Nhap xau:'); readln(st);
d:=length(st);
for i:=1 to d do
if st[i]='a' then delete(st,i,1);
writeln(st);
readln;
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
const fi='vao.inp';
fo='ra.out';
var f1,f2:text;
st:string;
i,d:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,st);
d:=length(st);
for i:=1 to d do
if st[i]='a' then delete(st,i,1);
writeln(f2,st);
close(f1);
close(f2);
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
uses crt;
var st:string;
begin
clrscr;
write('Nhap xau st:'); readln(st);
delete(st,3,4);
writeln('Xau sau khi xoa la: ',st);
readln;
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
program bai1;
uses crt;
var i:integer;
s,s1:string;
begin
clrscr;
write('nhap S:');readln(s);
while pos('C',s)<>0 do
begin
insert('LOP11A',s,pos('C',s));
delete(s,pos('C',s),1);
end;
writeln('xau sau khi bien doi la: ',s);
writeln('do dai cua xau tren la: ',length(s));
write('nhap s1:');readln(s1);
if s1[1]=s[1] then writeln('ki tu dau cua hai xau trung nhau')
else writeln('ki tu dau cua hai xau khong trung nhau');
readln;
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
tham khảo
uses crt;
var st:string;
i,d:integer;
begin
clrscr;
readln(st);
d:=length(st);
for i:=1 to d do
if (not (st[i] in ['A'..'Z'])) and (not (st[i] in ['a'..'z'])) then write(st[i]);
readln;
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
Program HOC24;
var s: string;
begin
s:='Ha Noi - thu do Viet Nam';
delete(s,9,7);
write(s);
readln
end.