Computer Science, asked by christinahannie2006, 10 months ago

How can I write a Java program to determine the length of the wooden strip required to frame a photograph of length and breadth 32 cm and 21 cm respectively?

Answers

Answered by Keshavs100605
20

Answer:

public class *your file name* {

public static void main (String []arg){

int length =32;

int breadth =21;

int total = length+breadth;

System.out.println("total" +total);

}}

Explanation:

Answered by gracy0
15

Answer:

public static void main ()

{

int length=32;

int breadth=21;

p=length+breadth;

}

System.out.println("length of wooden strip ="+p);

}

Similar questions