Question: just use if , for, while, cout , cin The use of if statements to write programs that change its flow according to simple conditions.
just use if , for, while, cout , cin
The use of if statements to write programs that change its flow according to simple conditions. You will also make use of for and while loops to repeat code blocks while a condition holds. You will interact with the user via the console with the cout and cin statements. In the process you will: Develop problem solving skills with C + + Become comfortable with control Structures Use C + + fundamental data types Write simple decision-making statements. A palindrome is a number or a text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321 55555 45554 11611 Write a program that reads in a five-digit integer and determines whether it's a palindrome. The sample output is provided below. Enter a five-digit integer (or -1 to quit): 12321 The number 12321 is a palindrome! Enter a five-digit integer (or -1 to quit): 12345 The number 12345 is not a palindrome. Enter a five-digit integer (or -1 to quit): 123 The number 123 is not a five-digit number. Enter a five-digit integer (or -1 to quit): -1 Good bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
