Write a program to find the perimeter of a triangle with sides measuring 10cm, 14 cm and 15 cm.
Answers
Answered by
3
Answer:
p = a+b+c
10+14+15
39 cm
hope it's helpful
Answered by
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
English,
15 days ago
Science,
1 month ago
History,
8 months ago
Geography,
8 months ago
Psychology,
8 months ago