---
# System prepended metadata

title: 'bai 2:'

---

# bai 2:
```
Bài 3
print("**********")
print("*        *")
print("*        *")
print("**********")

Bài 4
print("Goodbye")
print("\nSee you again")
```

# bai 3
```
# Bài 1
A = 123
B = 5
C = A * B
print(C)
# Bài 2
A = 1
B = 2
C = -3
delta = B * B - 4 * A * C
x1 = (-B + delta * (1 / 2)) / (2 * A)
print(x1)
x2 = (-B - delta * (1 / 2)) / (2 * A)
print(x2)
# Bài 3
a = 2
n = 100
p = a ** n
print(p)
# Bài 4
r = 15
s = r * r * 3.14
print(s)
# Bài 5
a = 4
b = 1
c = (a * a + b * b) ** (1/2)
print(c)
```

# Bai 4
```
# Bài 1
A = int(input())
B = int(input())
p = (A + B) * 2
s = A * B
print(p)
print(s)
# Bài 2
x = int(input())
f = x**10 + x**5 + 1
print(f)
# Bài 3
a = float(input())
b = float(input())
kq = int(a**3 + b**3 + a*b)
print(kq)
# Bài 4
h = float(input())
g = 9.8
v = (2 * g * h) **  (1 / 2)
print(v)
# Bài 5
x = float(input())
y = float(input())
kq = (x * x + y * y) ** (1 / 2)
print(kq)
# Bài 6
a = float(input())
b = float(input())
c = float(input())
p = (a + b + c) / 2
kq = (p * (p - a) * (p - b) * (p - c)) ** (1 / 2)
print(kq)
```
