perimetro de un triangulo soporte

public class Triangulos { int a; int b; int c; Triangulos () { } Triangulos(int x,int y,int z) { a= x; b= y; c= z; } int calc_perimetro() { int perimetro; perimetro=a+b+c; return(perimetro); } void set_a(int x) { a= x; } void set_b(int y) { b= y; } void set_c(int z) { c= z; } }
determina si las dimenciones dadas pertenecen a un triangulo y si es asi calcula el perimetro del mismo

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.