Computer Science, asked by navin21112006, 8 months ago

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

Answers

Answered by priyanshicshah100506
7

Answer:

package class10.ch1loopex;

import java.util.Scanner;

public class ch1_9_a

{

   public static void main()

   {

int a=10;

int b=14;

int c=15;

int perimeter=a+b+c;

System.out.println("Perimeter of triangle = "+perimeter+"cm");

}

}

Similar questions