Computer Science, asked by garvitmishra043, 7 months ago

Write a program in Java to calculate the area of a triangle using the following method:
Area of a triangle (AR)= (height*base)/2



Please write the program for class 8th


And I wud mark u as the brainliest

Answers

Answered by princessnavya269
0

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();

Similar questions