5.17 LAB: Swap ends Write a program that reads a list of integers from input and outputs the list with the first and las
Posted: Tue Jul 12, 2022 8:17 am
5.17 LAB: Swap ends Write a program that reads a list of integers from input and outputs the list with the first and last numbers swapped. The input begins with an integer indicating the number of values that follow. Assume the list contains fewer than 20 integers. Ex: If the input is: 812345678 the output is: 82345671 For coding simplicity, follow every output value by a space, including the last one. The output ends with a newline.