Computer Science, asked by kmpratima11, 6 months ago

Write a java program to calculate the area and perimeter of a triangle​

Answers

Answered by sivasmart2222
1

Answer:

class AreaOfTriangle. {

public static void main(String args[]) {

Scanner s= new Scanner(System. in);

System. out. println("Enter the width of the Triangle:");

double b= s. nextDouble();

System. out. println("Enter the height of the Triangle:"); double h= s. nextDouble();

Explanation:

HOPE IT HELPS.......

Similar questions