Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. package Exercise7;
  2. import java.util.Scanner;
  3. public class exercise7 {
  4.  
  5. public static void main(String[] args) {
  6. // TODO Auto-generated method stub
  7. Scanner in = new Scanner(System.in);
  8. System.out.println("Please enter the height of the room in sqaure feet");
  9. int height = in.nextInt();
  10. System.out.println("Please enter the length of the room in square feet");
  11. int length = in.nextInt();
  12. System.out.println("Please enter the width of the room in square feet");
  13. int width = in.nextInt();
  14.  
  15. int area = ((width * length) + (2 * (length * height)) + (2 * (height * width)));
  16. System.out.println(area);
  17.  
  18. while(area)
  19.  
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement