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
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
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