shreyansh-sawarn / Hacktoberfest

Participate in Hacktoberfest. Learn and get started. Contribute to open source. Make sure your pull requests are legitimate. Enjoy and have fun.
22 stars 80 forks source link

TechNumber #58

Closed rehan-sawarn closed 4 years ago

rehan-sawarn commented 4 years ago

A tech number can be tech number if its digits are even and the number of digits split into two number from middle then add these number if the added number’s square would be the same with the number it will called a Tech Number. If the number is split in two equal halves,then the square of sum of these halves is equal to the number itself. Write a program to generate and print all four digits tech numbers. Note: If number of digits is not even then it is not a tech number. Example: 2025 => 20+25 => 552 => 2025