분류 | 게시판 |
베스트 |
|
유머 |
|
이야기 |
|
이슈 |
|
생활 |
|
취미 |
|
학술 |
|
방송연예 |
|
방송프로그램 |
|
디지털 |
|
스포츠 |
|
야구팀 |
|
게임1 |
|
게임2 |
|
기타 |
|
운영 |
|
임시게시판 |
|
public class Problem9 {
public static void main(String[] args) {
// TODO Auto-generated method stub
double w = 4.5;
double h = 7.9;
double area = w * h;
double perimeter = 2 * (w + h);
System.out.println("The area of a rectangle with the width of " + w + " and height of " + h + " is " + area + ".");
System.out.println("The perimeter of a rectangle with the width of " + w + " and height of " + h + " is " + perimeter + ".");
System.out.println(area);
System.out.println(4.5 * 7.9);
}
}
죄송합니다. 댓글 작성은 회원만 가능합니다.