Program menghitung luas prisma dengan java
Posted by Unknown |  at 09:45
No comments
public class Prisma1.java
int al,ts,tp,a,b,c;
public Prisma1(int al,int ts,int tp,int a,int b,int c){
this.al=al;
this.ts=ts;
this.tp=tp;
this.a=a;
this.b=b;
this.c=c;
}
public double hitungvol(){
return ((0.5*al)*ts)*tp;
}
public double hitungluas(){
return ((a+b+c)*ts*(2*((0.5*al)*)));
}
}
Tagged as: Java, Tugas Kuliah
About the Author
Share This Post
Related posts
0 comments: