see the output Enter the value of the first array seperated by a space 1 3 5 Enter the value of the second array seperated by a space 2 4 6 3711