import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); int house = 5; int room = 3; int len = 2; int we = 4; double cost = 6; int areaRoom = len * we; int totalArea = areaRoom * room * house; double totalCost = totalArea * cost; System.out.println("Room area: " + areaRoom); System.out.println("Area of all rooms: " + totalArea); System.out.println("Total price of the construction: " + totalCost); } }
I want pseudocode and flowchart of this code.
The answer to your question is provided in the image:
Comments
Leave a comment