You now the drill. :)
You give your best shot to solve the problem. Then someone from the community can help you out to solve issues you have in the code, if any.
You really should try to solve the assignments first on your own before you ask others to do it for you. ;)
Pointers:
- Read a string from the input
- Turn (cast) it into a number
- Make sure it is 4 digit long.
- Cut off the first 2 and last 2 digits.
- check if the sum of these two numbers (first + last parts) to the power of 2 equals the original number
- Feel free to add optimizations, if you feel like (e.g. if the entered number ends with 2, 3, 7 or 8 then they definitely do not satisfy the rules -- no squares of an integral number can end with these digits -- See here.).
Good luck!