Question: Write a C++ programcalled question2.cpp. The program creates a function called bool SpecialNumber(int n). The function takes a number n (4 digits or less), and
Write a C++ programcalled question2.cpp. The program creates a function called bool SpecialNumber(int n). The function takes a number n (4 digits or less), and returns back a true if the first and last digits of the number are the same. For example 1231 is a special number, and the function returns true. For example, 2342 is also a special number. 3456, is not a special number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
