JavaTech
Pages - Menu
(Move to ...)
Home
Compilation Process
Algorithms || Introduction
▼
Pages
(Move to ...)
Algorithms || Introduction
Compilation Process
▼
Tuesday, December 29, 2015
Java program to print Triangle Pattern
›
Triangle Pattern: import java.io.*; public class triangle { public static void main (){ InputStreamReader istream = n...
Saturday, December 19, 2015
Java program to print the HCF and LCM of a number
›
HCF and LCM of a number: import java.util.*; class hcfandlcm { public static void main() { System.out.pr...
3 comments:
Java program to print the factorial of large numbers
›
Factorial of large numbers: import java.util.Scanner; import java.math.BigInteger; class BigFactorial { public static void...
Java program to print the factorial of a number
›
Factorial of a number: import java.util.Scanner; class Factorial { public static void main() { int n, c, fact...
Java program to print the factors of a number
›
Factors of a Numbers: import java.util.*; public class Factors { public static void main() { int n,i; Scanner sc=ne...
Java Program to print the table of a number
›
Table of a Number: import java.util.*; public class Tables { public static void main() { int n,i,f=1; Scan...
Wednesday, December 16, 2015
Java program to find the perimeter of a Circle, Rectangle and Triangle
›
Perimeter of Circle, Rectangle and Circle: import java.util.Scanner; public class Perimeter { int r, l, b, s1, s2, s3; doub...
Java program to print the area of triangle
›
Area of Triangle: import java.util.Scanner; class AreaTriangle { public static void main() { Scanner scanner = new Scanne...
Java program to print the area of Square
›
Area of Square: import java.util.Scanner; class SquareArea { public static void main () { System.out.println("Ent...
Java program to print the area and circumference of a circle
›
Area and Circumference of a Circle: import java.util.Scanner; class Circle { static Scanner sc = new Scanner(System.in); pu...
Java program to swap the values of two variables without temporary variable
›
Swapping the values of two variables without temp variable: import java.util.*; public class Swapping { public static void main() ...
Java program to swap the values of two variables with temporary variable
›
Swapping the values of two variables with temp variable: import java.util.*; public class Swapping { public static void main() { ...
Java program to print the Division of 2 numbers with Scanner
›
Division of two numbers with Scanners: import java.util.*; public class Div { public static void main() { Scanner ...
Java program to print the Multiplication of 2 numbers with Scanner
›
Multiplication of two numbers with Scanners: import java.util.*; public class Multi { public static void main() { ...
Java program to print the Subtract of 2 numbers with Scanner
›
Subtraction of two numbers with Scanners: import java.util.*; public class Subtract { public static void main() { ...
Java program to print the Addition of 2 numbers with Scanner
›
Add two numbers with Scanners: import java.util.*; public class Sum { public static void main() { Scanner sc=new S...
Java program to print the Division of 2 numbers
›
Divide two numbers: public class Divide { public static void main() { int a,b,result; a=20; ...
Java program to print the Mutiplication of 2 numbers
›
Multiply two numbers: public class Multi { public static void main() { int a,b,result; a=10; ...
Java program to print the Subtraction of 2 numbers
›
Subtract two numbers: public class Subtract { public static void main() { int a,b,sum; a=10; ...
Java program to print the Addition of 2 numbers
›
Add two numbers: public class Sum { public static void main() { int a,b,sum; a=10; b=20; su...
Home
View web version