public class segitiga {
public int a;
public int b;
public int c;
public int t=4;
public double
Luas;
public int Kell;
public void a(){
Scanner in =
new Scanner(System.in);
a=in.nextInt();
System.out.println("Sisi a :"+a);
}
public void b(){
Scanner in =
new Scanner(System.in);
b=
in.nextInt();
System.out.println("Sisi b:"+b);
}
public void c(){
Scanner in =
new Scanner(System.in);
c=
in.nextInt();
System.out.println("Sisi c:"+c);
}
public void a(){
Scanner in =
new Scanner(System.in);
a=in.nextInt();
System.out.println("Sisi
a :"+a);
}
public void b(){
Scanner in =
new Scanner(System.in);
b=
in.nextInt();
System.out.println("Sisi b:"+b);
}
public void c(){
Scanner in =
new Scanner(System.in);
c=
in.nextInt();
System.out.println("Sisi c:"+c);
}
public void Hasil
(){
Luas= a*t/2;
System.out.println("Luas Segitiga :"+Luas);
}
public void
Kell(){
Kell=a+b+c;
System.out.println("Keliling Segitiga :"+Kell);
}}
public class Hasil_sgt {
public static void
main(String[] args) {
segitiga n =
new segitiga();
n.a();
n.b();
n.c();
n.Hasil();
n.Kell();
}}
Posted by 21.50 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar