Math, asked by FGFGY, 1 year ago

Write a java program to accept the area and length of a rectangle and calculate its breadth.

Answers

Answered by Anonymous
5

import java.util.*;

public class Breadth

{

public static void main(String args[])

{

Scanner in =new Scanner(System.in);

float a,l,b;

System.out.println("Enter the area and length");

a=in.nextFloat();

l=in.nextFloat();

b=a/l;

System.out.println("The breadth is"+b);

}

}

Similar questions