WAP to find area whose perimeter is 12meter
Answers
Answered by
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
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
Similar questions