- 5 16 Lab Array Palindrome Write A Program That Reads A List Of Integers From Input And Determines If The List Is A Pali 1 (54.83 KiB) Viewed 39 times
5.16 LAB: Array palindrome Write a program that reads a list of integers from input and determines if the list is a pali
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
5.16 LAB: Array palindrome Write a program that reads a list of integers from input and determines if the list is a pali
5.16 LAB: Array palindrome Write a program that reads a list of integers from input and determines if the list is a palindrome (values are identical from first to last and last to first). The input begins with an integer indicating the length of the list that follows. Assume that the list will always contain fewer than 20 integers. Output "yes" if the list is a palindrome and "no" otherwise. The output ends with a newline. Ex: If the input is: 6 15 9 9 5 1 the output is: yes Ex: If the input is: 5 1 2 3 4 5 the output is: no 403736.2453724.qx3zqy7