Value and Types
Java : Value and Types Program List
Create a program that will swap the values stored in two variables without using a third variable.
Write a program to find the product of 5, 7 and 12 using variables.
Write a program using int variables to find the sum of three numbers say 15, 36 and 45 and
subtract the result from 100 using variables.
Write a program to display the names of five fruits with a single System.out.println();
statement, but in different lines.
Write a Java program which accept the radius and height of cylinder and calculate the area of a cylinder.
Write a java program to input three integers and find the difference between their sum and their average.