Java Program to check a number is prime or not
In this program, You will learn how to check a number is prime or not in java. Example: How to check a number is prime or not in java. Output:
In this program, You will learn how to check a number is prime or not in java. Example: How to check a number is prime or not in java. Output:
In this program, You will learn how to check a number is Armstrong or not in java. Example: How to check a number is Armstrong or not in java. Output:
In this program, You will learn how to check a number is palindrome or not in java. Example: How to check a number is palindrome or not in java. Output:
In this program, You will learn how to reverse a number in java. Example: How to reverse a number in java. Output:
In this program, You will learn how to check a number is a strong number or not in java. Example: How to check a number is a strong number or not in java. Output:
In this program, You will learn how to check a number is a perfect number or not in java. Example: How to check a number is a perfect number or not in java. Output:
In this program, You will learn how to find factorial of a number in java. Example: How to find factorial of a number in java. Output:
In this program, You will learn how to print the sum of the first 10 natural numbers in java. Example: How to print the sum of the first 10 natural numbers in java. Output:
In this program, You will learn how to swap two numbers in a single line in java. Example: How to swap two numbers in a single line in java. Output:
In this program, You will learn how to swap two numbers without using third variable in java. Example: How to swap two numbers without using third variable in java. Output: