Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Tiles {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- System.out.print("WIDTH PLACE = ");
- double spaceA = Double.parseDouble(scan.nextLine());
- System.out.print("HEIGHT PLACE = ");
- double spaceB = Double.parseDouble(scan.nextLine());
- System.out.print("TILE WIDTH = ");
- double tileA = Double.parseDouble(scan.nextLine());
- System.out.print("TILE HEIGHT = ");
- double tileB = Double.parseDouble(scan.nextLine());
- double areaS = spaceA * spaceB;
- double areaT = tileA * tileB;
- System.out.print("TILES YOU NEED = " + (areaS / areaT));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement