java program to find volume of cube

Write a Java program to find the area, perimeter, and diagonal of a rectangle.

Here is a Java program that finds the area, perimeter, and diagonal of a rectangle. Also, this program finds the volume of a cube. Java program – code import java.util.Scanner;public class RectangleCubeMeasurement{ public static void main(String args[]){float length,breadth,area,perimeter;double diagonal;float side; double volume;Scanner sc = new Scanner(System.in);System.out.println(“Calculation of Area, perimeter and diagonal of a rectangle”);System.out.println(“Enter the […]

Scroll to top
error: physicsTeacher.in