Write a function that displays string n times as the figure 5, n is parameter of this function. Use this function in a program that inputs a string and a positive number then pass them to the function.
เขียนฟังก์ชั่นที่แสดงสตริง n ครั้งดังรูปที่ 5, n เป็นพารามิเตอร์นี้ ฟังก์ชั่น ใช้ฟังก์ชันนี้ในโปรแกรมที่ปัจจัยการผลิตสตริงและจำนวนบวกแล้ว ผ่านพวกเขาไปยังฟังก์ชั่น