Tech Number Program in Java2 min read

In this tutorial, we will learn about Tech numbers and create a Java program to check for Tech numbers. We will see two java examples on Tech Numbers with Java Programming.

What is Tech Number?

A number is said to be Tech Number if the number is an even digit number and is equally divided into two halves. After that add the equally divided two halves and find the sum of that number. If we get the original number itself then it is a Tech Number.

Example: 3025, 2025, etc.
2025 => 20 + 25 => (55)2 => 3025, hence Tech Number.

Tech Number

Let us go through the program, we will write two different programs:

  1. Check for the Tech number in java.
  2. print all the tech numbers within a given range.

Java program and check whether the Number is Tech or not


Enter the number: 3025
3025 is a Tech Number

//Another Output
Enter the number: 1045
1045 is not a Tech Number

Java Program to find all Tech Number in a given Range


Enter the lower range:: 1
Enter the uppper range:: 10000
The Tech Numbers between 1 and 10000 are:
81 2025 3025 9801


Java Program to find the sum of the Largest Forward Diagonal

in this tutorial, we will write a java program to find the sum of the Largest Forward Diagonal in an Arraylist (matrix). Java Program to …

C Program to search an element in an array using Pointers

A separate function( search_function()) will be created where the array pointer will be declared and the searched element along with the size of an array …

C Program to find the sum of the digits of a number using recursion function

This C program calculates the sum of digits of a given number using recursion. Here’s a concise explanation: Function Definition: sumDigits(int n) This function calculates …

C program to find factorial of a numberĀ using Ternary operator with Recursion

Recursion refers to the function calling itself directly or in a cycle. Before we begin, you should have the knowledge of following in C Programming: …

C Program to Add Two Numbers Using Call by Reference

The program takes the two numbers from the user and passes the reference to the function where the sum is calculated. You may go through …

Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python

In this tutorial, we will write a program to find a pairs of elements from an array such that for the input [a,b,c,d,e,f,g] we will …