package xiaosi1;
import java.util.Scanner;
public class Rectangle fint area;
int zc;
public int Area(int a, int b) lthis.area = area;
int area=a* b;
return area;
]
public int Zhouchang(int a, intb)f
this.zc = zc;
intzc=2*(a+ b);
return Zc;
public static void
main(Stringl] args) f
Scanner s = new
Scanner(System.in);
System.out.println(' 'lK方形的长: ")
int a = s.nextlnt();
System.out.println(" i#âlK方形的宽: ")
int b = s.nextlnt();
Rectangles1 = new
Rectangle();
s1.Area(а, b);
s1.Zhouchang(a, b);
System.out.println("i81K5FS ÉJỳ: "+ s1.Area(a,b));System.out.println"Z1K5形的周长为: "+s1.
Zheuchang(a, b;,