# Tra cứu code Python, C++, Pascal
## Cấu trúc chương trình
### Python
```python=
print("Hello world!")
```
### C++
```cpp=
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!";
}
```
### Pascal
```pascal=
begin
writeln("Hello world!")
end.
```
## Khai báo và sử dụng biến
### Python
```python=
n = 5
x = 2.0
s = "ucode.vn"
print(n)
print(x)
print(s)
```
### C++
```cpp=
#include <iostream>
using namespace std;
int main()
{
int n = 5;
double x = 2.0;
string s = "ucode.vn";
cout << n << endl << x << endl << s;
}
```
### Pascal
```pascal=
var integer n = 5
real x = 2.0
string s = "ucode.vn"
begin
writeln(n)
writeln(x)
writeln(s)
end.
```