Write down the c++ program which declares the array of 50 components of type float. Initialize array so that first 25 components are equal to square of the index variable, and last 25 components are equal to three times index variable. Output array so that 10 elements per line are printed.