Java Programming Examples
Arithmetic operators
Program - 3
Write a program to find the sum and difference between 25 and 16 using variables in different lines
Program - 6
Java program to input the length and breadth of a rectangle and find its area and perimeter
Program - 7
Java program to calculate the area of a cylinder
Program - 8
Java program to calculate the volume of a cone
Program - 11
Java program to input the principal rate and time for a certain amount of money and print the simple interest
Program - 12
Java program to input the length and breadth of a rectangle and find its area and perimeter
Program - 14
Java program to input the length breadth and height of a cuboid and find its volume and total surface area
Program - 15
Java program to input the radius and height of a cylinder and find its volume and total surface area
Program - 21
Java program to input an integer and if positive change it to negative and if negative change it to positive
Program - 22