2 câu trả lời
var s1, s2: string;
Begin
Write('nhap xau s1: '); readln(s1);
Write('nhap xau s2: '); readln(s2);
Writeln('s1: ', s1);
Writeln('s2: ', s2);
Readln
End.
uses crt;
var s1,s2:string;
begin
clrscr;
write('Nhap xau thu nhat: ');readln(s1);
write('Nhap xau thu hai: ');readln(s2);
writeln('Hai xau da nhap la: ');
write(s1,' ', s2);
readln;
end.
//code c++
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s1, s2;
cout << "Nhap xau thu nhat: "; cin >> s1;
cout << "\nNhap xau thu hai: "; cin >> s2;
cout << "\nHai xau vua nhap la: ";
cout << endl << s1 << " " <<s2;
return 0;
}