simple code

Write an interactive program to perform the following tasks in order:a) Ask user to input an array size that is …