Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Exercise7;
- import java.util.Scanner;
- public class exercise7 {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner in = new Scanner(System.in);
- System.out.println("Please enter the height of the room in sqaure feet");
- int height = in.nextInt();
- System.out.println("Please enter the length of the room in square feet");
- int length = in.nextInt();
- System.out.println("Please enter the width of the room in square feet");
- int width = in.nextInt();
- int area = ((width * length) + (2 * (length * height)) + (2 * (height * width)));
- System.out.println(area);
- while(area)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement