Generate an N | Function to construct an array with sum of each subarray divisible by K ; Traverse a loop from 1 to N ; Pri - th multiple of K ; Driver Code
def construct_Array ( N , K ) : NEW_LINE INDENT for i in range ( 1 , N + 1 ) : NEW_LINE INDENT print ( K * i , end = " ▁ " ) NEW_LINE DEDENT DEDENT N = 3 NEW_LINE K = 3 NEW_LINE construct_Array ( N , K ) NEW_LINE