A beautiful Pythagorean Triple Program
A Pythagorean Triple is a set of positive integers, a, b and c that fits the rule: a^2 + b^2 = c^2 So if the...
A delightful Automorphic number
A number is called an Automorphic number if its square ends in the same digits as the number itself. For example, N=6 is an automorphic number because 6*6=36N=25...
A dazzling Armstrong Number Program
It is a number that is equal to the sum of cubes of its digits. For example 153 1^3+5^3+3^3=1+125+27=153.
For some basic concepts of java visit...
An Efficient Kaprekar Number
It is a number whose square, when divided into two parts, the sum of parts is equal to the original number For Example 45-->(45)^2= 2025-->Now when we divide...
An easy Pronic Number Program
It is a number which is the product of two consecutive integers, that is, a number of the form n(n + 1).For Example: 12 is a pronic number...
A simple program to use variable & Datatype
To learn more about variables and datatype click the given link.
https://java4school.com/data-type
Write a program to declare and initialize some...
Factorial of a number :Unleashed
Factorial of a number is the product of the numbers from 1 up to the number.
Write a program to accept a...
Fibonacci Series Program
Fibonacci series is a series of numbers in which each number is the sum of the two preceding numbers. For example 0, 1, 1, 2, 3, 5, 8, 13,...
A deadly Duck Number
Write a program to accept a number and check whether it is a duck number or not. A Duck number is a number that has zeroes present...
Loss percentage calculation program
Write a program to input cost price and selling price and calculate the loss percentage and print.
import java.io.*;
public class loss
{
public...