Computer Science, asked by Anonymous, 1 month ago

Write a program to find the perimeter of a triangle with sides measuring 10cm, 14 cm and 15 cm.​

Answers

Answered by Anonymous
3

Answer:

p = a+b+c

10+14+15

39 cm

hope it's helpful

Answered by MrRdx
137

Answer :

public class Calc

{

public void compute( )

{

int side1 = 10, side2 = 14, side3 = 15 ;

int perimeter;

perimeter = side 1 + side 2 + side 3 ;

System.out.println("Perimeter of triangle with sides 10cm, 14cm and 15cm is" + perimeter + "cm");

}

}

____________________

Output :

  • Perimeter of triangle with sides 10 cm, 14 cm and 15 cm is 39 cm.

________________________________

Similar questions