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

Output:

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

Output:

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


MORE

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 …
Read More

String Pattern Programs in C

In this tutorial, we will write various C pattern programs for String. Before that, you may go through the following topics in C. for loop …
Read More

Java Program to Find pair of Integers in Array whose sum is given Number

In this tutorial, we will write a program to find a pair of elements from an array whose sum equals a given number in java …
Read More

Program to Print Diamond Alphabet Patterns in C

In this tutorial, we will learn to write a C program to print Diamond patterns using alphabets/characters. However, in this tutorial, we will create a …
Read More

Half Diamond Pattern in C using Alphabets

In this tutorial, we will learn and code the half diamond alphabet patterns in C programming language. However, in this tutorial, we will create a …
Read More

Half Pyramid of Alphabets in C

In this tutorial, we will learn and code alphabet patterns in C programming language specifically the Half pyramid of alphabets in C programming. However, in …
Read More