Created
June 6, 2021 02:56
-
-
Save bopstrong/4b1c3b4f02193d38322d77b44f33aa5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//august nommik | |
// 2 10 area cal | |
import java.util.Scanner; | |
public class ex2 | |
{ | |
public static void main(String[] args) | |
{ | |
double length, width, area, per; | |
System.out.println(" type the length of of room"); | |
Scanner sc = new | |
Scanner ( System.in); | |
length = sc.next.Double(); | |
System.out.println(" type the width of the room"); | |
width = sc.next.Double(); | |
area = length * width; | |
per = 2.0*(length + width); | |
System.out.println(" area and perimeter" + area +"" + per); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment