create a console application that compute the area of triangle, and ask the user if he want to repeat the program.
but i haved an 8 error saying cannot find symbol in line 19,23,26,27.
import java.util.Scanner;
public class Area3
{
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
Area3 tri = new Area3();
float base, height, area;
String yes,no;
tri.base();
tri.height();
tri.area();}
public void base(){
System.out.print("enter base of triangle");
base = input.nextFloat();}
public void height(){
System.out.print("enter height of triangle");
height = input.nextFloat();}
public void area(){
area = (base * height)/2;
System.out.print("the area of triangle is:"+ area);
System.out.println("Do you want to repeat the program? "Yes" or "No" ");
if(yes)
}
}