{"id":16971,"date":"2021-08-17T08:47:57","date_gmt":"2021-08-17T03:17:57","guid":{"rendered":"https:\/\/python-programs.com\/?p=16971"},"modified":"2021-11-22T18:37:23","modified_gmt":"2021-11-22T13:07:23","slug":"python-program-to-check-tech-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-tech-number-or-not\/","title":{"rendered":"Python Program to Check Tech Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Check Buzz Number or Not<\/a>
\nTech number :<\/strong><\/p>\n

A number is referred to as a tech number if it has an even number of digits and can be divided exactly into two parts from the middle. After evenly dividing the number, add the numbers together and find the square of the sum. If we get the number as a square, we know it’s a tech number; otherwise, it’s not.<\/p>\n

Example:<\/p>\n

Let the number = 2025<\/p>\n

#divide the number into two equal parts<\/p>\n

first part = 20<\/p>\n

second part = 25<\/p>\n

sum = first part + second part = 20 +25 = 45<\/p>\n

#square the obtained ‘sum ‘<\/p>\n

square_sum = 45*45 = 2025 (which is equal to given number).<\/p>\n

Therefore 2025 is a tech number.<\/p>\n

Note:<\/strong> The basic condition for checking the tech number is that it has an even number of digits. If this is the case, we will proceed to the next step; otherwise, the code will not be executed further.<\/p>\n

Examples:<\/strong><\/p>\n

Example 1:<\/strong><\/p>\n

Input:\u00a0<\/strong><\/p>\n

Given Number = 2025<\/pre>\n

Output:<\/strong><\/p>\n

The Given Number { 2025 } is Tech number<\/pre>\n

Example 2:<\/strong><\/p>\n

Input:\u00a0<\/strong><\/p>\n

Given Number = 2025<\/pre>\n

Output:<\/strong><\/p>\n

The Given Number { 1800 } is Not a Tech number<\/pre>\n

Program to Check Tech Number or Not<\/h2>\n

Below are the ways to if the given number is a Tech number or not.<\/p>\n