const baseValue = prompt('Enter the base of a triangle: ');
      const heightValue = prompt('Enter the height of a triangle: ');
      // calculate the area
      const areaValue = (baseValue * heightValue) / 2;
      console.log(
        `The area of the triangle is ${areaValue}`
      );
      
      Javascript language logo

      Area Triangle

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.