Computer Science, asked by Kukun1, 1 year ago

WAP to find area whose perimeter is 12meter

Answers

Answered by digi18
0
Perimeter = 12
As we know perimeter is given sum of all side.

So length = x and breadth = 12-x

public class Area{

public static void main (String[] args){

int x, (12 - x), area;

area = x * (12 - x);

System.out.println("Area=" +area);

}

}


OUTPUT

area = 12x -  {x}^{2}
Similar questions