1.

Write a program in Java to calculate the area of a triangle using the following method:Area of a triangle (AR)= (height*base)/2Please write the program for class 8thAnd I wud mark u as the brainliest

Answer»

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



Discussion

No Comment Found