Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bopstrong/4b1c3b4f02193d38322d77b44f33aa5a to your computer and use it in GitHub Desktop.
Save bopstrong/4b1c3b4f02193d38322d77b44f33aa5a to your computer and use it in GitHub Desktop.
//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