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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!