Share
Lập trình Pascal tách số ra khỏi chuỗi. VD: Nhập: texxt////1234pa5cal567 Kết quả: 1234 5 567
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answers ( )
Uses crt;
Var St:String;
i:longint;
Begin
Clrscr;
Write(‘Nhap sau St: ‘); Readln(St);
For i:=1 to length(St) do
If (St[i] in [‘0’..’9′]) and (St[i+1] in [‘0’..’9′]) then write(St[i])
Else If (St[i] in [‘0’..’9′]) then
Begin
Write(st[i]);
Writeln;
End;
Readln;
End.
vâng
Để tìm câu trả lời chính xác các em hãy tham khảo tách số ra khỏi chuỗi các nguồn hoc24.vn, lazi.vn, hoidap247.com để thầy cô và các chuyên gia hỗ trợ các em nhé!