advictoriam

Untitled

Nov 27th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. /**
  2.    A program that computes the area of a rectangle
  3.    and prints it out.
  4.    All variables should be of type double.
  5. */
  6. public class RectArea
  7. {
  8.    public static void main (String[] args)
  9.    {
  10.       double width = 4.25;
  11.       double height = 3.40;
  12.       double area = width * height;
  13.      
  14.       System.out.println(area);
  15.    }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment