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

Perfect Square Program in Java

In this tutorial, we will write a java program to check if a given number is a perfect square or not. Before that, you should have knowledge of the following topic in Java. java function if..elsestatement in java We will …

Read morePerfect Square Program in Java

Categories Java Programs Tags java number programs

Java Program to Find the LCM of Two Numbers

Here, we will write a program to calculate the LCM of two numbers in java. LCM stands for Lowest Common Factor. The Numbers will be taken as input from the user using the scanner class. Before we start, click on …

Read moreJava Program to Find the LCM of Two Numbers

Categories Java Programs Tags java number programs

Java Program to Find the Greatest of Three Numbers

The following program takes three integers from the user and finds the largest of those three numbers. The program uses if..elseif statement to check the greatest of three and print them accordingly. Before we start, click on the links below …

Read moreJava Program to Find the Greatest of Three Numbers

Categories Java Programs Tags java number programs

Java Program to Display the Odd Numbers

The following program takes the value for n that is the max limit of n from the user. The program starts checking for odd numbers between this range 1 to n and it displays all the odd numbers lying within …

Read moreJava Program to Display the Odd Numbers

Categories Java Programs Tags java loop program, java number programs

Java Program to Check Positive or Negative Numbers

In this tutorial, we will write a program to check whether the number is positive or negative in java. The program takes the user input for the number to be checked and performs the calculation. Before, we begin you need …

Read moreJava Program to Check Positive or Negative Numbers

Categories Java Programs Tags java number programs

Java Program to Find the Sum of the Digits of a Number

In this example, we will calculate the sum of the Digits of a Number in java taking the value from the user. Before we begin, you should have knowledge on the following topic in Java: Java Operators Explanation: This is …

Read moreJava Program to Find the Sum of the Digits of a Number

Categories Java Programs Tags java number programs

Java Program to Find a Factorial of a Number using Recursion

In this example, we will calculate the factorial of a number taking the value from the user.You can also learn to find the Factorial of a Number in Java Using for loop. Recursion refers to the function calling itself inside …

Read moreJava Program to Find a Factorial of a Number using Recursion

Categories Java Programs Tags java number programs

Java Program to Find a Factorial of a Number

In this example, we will calculate the factorial of a number taking the value from the user. You may also learn to find Factorial of a Number in Java Using recursion. Before we begin, you should have the knowledge of …

Read moreJava Program to Find a Factorial of a Number

Categories Java Programs Tags java loop program, java number programs

Java Program to Find the Sum of Natural Numbers

It is the Basic Java Program to find the sum of N natural numbers. The program below uses the While loop, if you want to learn about the while loop click below. While loop in Java Example: If you want …

Read moreJava Program to Find the Sum of Natural Numbers

Categories Java Programs Tags java loop program, java number programs

Java Program to Generate Random Numbers

Generating Random numbers in java is quite easy as it provides various classes to do that. It comes in handy when needed to apply to any kind of application development that might require random number generation. Let start by knowing …

Read moreJava Program to Generate Random Numbers

Categories Java Programs Tags java number programs
Older posts
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