Tagged: java assignments

Java program that takes two numbers as input  from a user and displays the product of two numbers. 0

Java program that takes two numbers as input from a user and displays the product of two numbers.

Below Java program code takes two integers from the user , multiplies  them and display import java.util.Scanner; public class JavaMultiply { public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.print(“Input first...

Write a Java program to print the sum of two numbers 0

Write a Java program to print the sum of two numbers

Below java program code prints sum of two numbers and displays the result. /** * * @author Eric * site www.techoverload.net */ public class JavaSum { public static void main(String args[]) { int num1=20;...

Write a Java program to display “Hello world” 0

Write a Java program to display “Hello world”

Below java program code is used to display “Hello World”  and print your name in a seperate line. /** * * @author Eric * Site:www.techoverload.net */ public class JavaHelloWord { public static void main(String...