Cánh Diều - FUNC - Hàm chào mừng (T87)

View as PDF

Points: 100 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho số nguyên \(n\). Viết hàm in ra \(n\) dòng chữ "Hello world!"

Yêu cầu: viết và sử dụng hàm đã viết.

Input

  • Một số nguyên \(n\) \((1\leq n\leq 100).\)

Output

  • In ra \(n\) dòng theo yêu cầu.

Example

Test 1

Input
3
Output
Hello world!
Hello world!
Hello world!

Comments

  • voducviet500 11:21 a.m. 13 oct, 2024

    n=int(input())
    for i in range(n):
    print("Hello world!")
    cần gì (int)

    • linhtrang2014 6:53 p.m. 3 aug, 2024

      lúc t lm scracth thì nát não 🙂

      • peter 10:25 p.m. 20 feb, 2024

        n = input()
        i = 0
        for i in range(int(n)):
        print("Hello world!")

        • peter 10:24 p.m. 20 feb, 2024

          n = input("Nhap n:")
          i = 0
          for i in range(int(n)):
          print("Hello world!")