Example2_7

posted Jan 20, 2014, 12:59 AM by dldar masud   [ updated Jan 20, 2014, 12:59 AM by Karwan Jacksi ]
// Example2_7


import java.util.*;
public class Example2_7
 {
static Scanner console = new Scanner(System.in);
public static void main(String[] args)
       {
int x, y, perime, area;
System.out.print("Enter length, width :");
x = console.nextInt();
y = console.nextInt();
perime = (x + y) * 2;
area = x * y;
System.out.printf("Perime = %d, area = %d", perime, area);
}

}

ċ
Example2_7.java
(0k)
Karwan Jacksi,
Jan 20, 2014, 12:59 AM
Comments