Nguyễn Quang Trung
Giới thiệu về bản thân
In my opinion, young people should reduce their time spent on electronic devices for these reasons.
Firstly, teenagers can have less time for their homework. Parents can manage child's screen time to improve the study result.
Secondly, teenager's health can be worse, their eyesight will be damaged and cause nearsighted, it reduces sleep time and make them overw
In conclusion, teengers should have their screen time managed carefully to have a healthy lifestyle
Chương trình có lỗi cú pháp
Mã lỗi là SyntaxError
Lí do gặp lỗi: Câu lệnh if sai cú pháp. Cụ thể, thiếu dấu hai chấm cuối câu
Cách khắc phục: Thêm dấu hai chấm vào cuối dòng lệnh if (dòng 3)
a=float(input())
while a<=0:
print("Số vừa nhập chưa phải số thực dương. Hãy nhập lại.")
a=float(input())
print(f"{a**2:.2f}")
def UCLN(a, b):
while b != 0:
a, b = b, a % b
return a
a = int(input("Nhập số a: "))
b = int(input("Nhập số b: "))
print(f"UCLN({a}, {b}) = {UCLN(a, b)}")