Skip to content
Download Android App: Follow Us:
Simple2Code
  • Home
  • Java
    • Java Tutorial
    • Java Programs
    • Java Pattern Programs
  • C
    • C Tutorial
    • C Programs
  • C++
    • C++ Tutorial
    • C++ Programs
  • C#
    • C# Tutorial
    • C# Programs
  • Apps
  • Blog
  • About Us

java number programs

Java Program to Find GCD of Two Numbers

In this tutorial, we will write a java program to calculate the GCD of two numbers. GCD of two numbers in Java: GCD(Greatest Common Divisor) or we can say HCF(Highest Common Factor) of two numbers is the largest number(integer) that …

Read moreJava Program to Find GCD of Two Numbers

Categories Java Programs Tags java number programs

Java Program to find the Square Root of a Number

This post shows how to find a square root of a number in java. We will learn two methods to find the square root one by an in-built math method called Math.sqrt() and the other by using do-while loop.let’s begin. …

Read moreJava Program to find the Square Root of a Number

Categories Java Programs Tags java number programs

Java Program to check whether the Number is Palindrome or not

In this tutorial on Java Program to check whether the number is Palindrome or not, we will learn what is palindrome number is and its programming implementation with an explanation. What is a palindrome number? A number is said to …

Read moreJava Program to check whether the Number is Palindrome or not

Categories Java Programs Tags java number programs

Java Program to check whether a Number is Prime or Not

In this tutorial, we will write a program to check whether the number is prime or not in java. Before that, you should have knowledge on the following topic in java. for loop if statement Prime Number A number is …

Read moreJava Program to check whether a Number is Prime or Not

Categories Java Programs Tags java number programs

Java Program to Check Armstrong Number

In this tutorial, we will write a Java Program to check Armstrong number. We will write two different programs to check the armstrong number in java. 1. What is an Armstrong number?2. Java program to check the Armstrong Number(for any …

Read moreJava Program to Check Armstrong Number

Categories Java Programs Tags java number programs

Java Program to Generate Fibonacci Series

In this java program tutorial, we will write a java program to display the Fibonacci series. Let us first understand what is Fibonacci series is and then the Java program to generate them. What is Fibonacci Series? Fibonacci series is …

Read moreJava Program to Generate Fibonacci Series

Categories Java Programs Tags java number programs

Java Program to Reverse the Number

The following Java Program uses the Multiplication and Modulus Operator to reverse the number entered by the User. Something like this, If the entered Number is 1234567, then the final result will display 7654321. If you do not know about …

Read moreJava Program to Reverse the Number

Categories Java Programs Tags java loop program, java number programs

Java Program to Swap Two Numbers using the Third variable

Here you will learn how Swap two numbers using the third Variable. The program declares a temp variable to temporarily store the value of one of the two values. If you want to know how to swap numbers without using …

Read moreJava Program to Swap Two Numbers using the Third variable

Categories Java Programs Tags java number programs

Java Exercise: How to Divide in Java

Division in Java: This article will show you the process to divide in Java with output. The division is one of the basic operations in java. Others include addition, subtraction, and multiplication. For dividing in java, a division operator (/)is …

Read moreJava Exercise: How to Divide in Java

Categories Java Programs Tags java number programs

Java Program to Swap Two Numbers Without using the Third Variable

This post covers the Java Program to swap two numbers without using the third variable. It is easy to swap two numbers using the third variable, we assigned one to a temporary(temp) variable and swap with others. Swap two numbers …

Read moreJava Program to Swap Two Numbers Without using the Third Variable

Categories Java Programs Tags java number programs
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →

More Topics

  • Java Program to find the sum of the Largest Forward Diagonal
    28 April 2024
  • C Program to search an element in an array using Pointers
    7 January 2024
  • C Program to find the sum of the digits of a number using recursion function
    7 January 2024
  • C program to find factorial of a numberĀ using Ternary operator with Recursion
    6 January 2024
  • C Program to Add Two Numbers Using Call by Reference
    6 January 2024
  • Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python
    1 February 2023
  • String Pattern Programs in C
    29 July 2022

Categories

  • C Programs
  • C Tutorial
  • computer fundamentals
  • CPlusPlus Programs
  • CPlusPlus Tutorial
  • CSharp Programs
  • CSharp Tutorial
  • HTML
  • Java Programs
  • Java Tutorial
  • javascript
  • Uncategorised

Simple2Code

  • About Us
  • Privacy Policy
  • Disclaimer
  • Sitemap

Search

Follow Us:
Copyright © 2025 Simple2Code