simple code
Write an interactive program to perform the following tasks in order:a) Ask user to input an array size that is an integer value ranging from 10 to 20, inclusivelyb) Check the validity of user input and ask the user to input again if previous value was invalidc) Echo users valid …