programming engineering c++

2/2 Exercise#3: Is it a Palindrome? Write a program that inputs a five digits positive integer and test whether the integer i 2/2 Exercise#3: Is it a Palindrome? Write a program that inputs a five digits positive integer and test whether the integer is a palindrome or not. A palindrome integer is aninteger that is symmetric around its center. The integers 52825,81318, 12321 are palindromes, while the integer 52823 is not. Sample input/output: Enter a five-digit number: 27672 Enter a five-digit number: 23482 23482 is not a palindrome 27672 is a palindrome Exercise#4: Which Month it is? Write a program that inputs a positive integer inthe range [1, 12] and prints the mont h name and its number of days. The program should print “Invalid number” if the number is out of the range. Sample input/ output: Enter a positive integer in the range [1, 12]: 3 The month is March and it has 31 days



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *