When you declare a method each parameter must be given a type. There are some instances where you did not specify a type like


public static double triArea
(double base,heig);
{
...