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
India Languages,
1 month ago
Science,
1 month ago
Science,
2 months ago
History,
9 months ago
Geography,
9 months ago
Psychology,
9 months ago