Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- A program that computes the area of a rectangle
- and prints it out.
- All variables should be of type double.
- */
- public class RectArea
- {
- public static void main (String[] args)
- {
- double width = 4.25;
- double height = 3.40;
- double area = width * height;
- System.out.println(area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment